![]() |
GPAL - Generally Positive Automation Library v1.0
GPAL The Fluent Automation LIbrary
|
GPAL is a readable fluent library based on a Unit of Work (UOW) paradigm. A UOW is one or more destinations (browser or application selectors) and one or more actions. Solutions are acheived by chaining of UOWs.
At it's heart, fluent programming is defined as method chaining. GPAL extends this paradigm to problem solving as well, reducing problems to simple UOWs that just work.
Writing GPAL programs is as simple as defining your selectors then writing the natural language like workflow. GPAL programs are easily readable and understandable by anyone.
// GPAL will attempt to find the destination using the order of the selectors you define
// sometimes more consistent results can be acheived using a different selector (dynamic websites)
static Selector optionSelector1 = GPAL.Selector
.WithCSS(@"#gh-cat > option:nth-child(26)")
.WithXPath(@"//*[@id=""gh-cat""]/option[26]")
//.WithJavascript // use javascript to interact with this item
// javascript and selenium LOOK the same (the option is selected), but they are different
// selenium is the default
// hardware is a slightly different experience moving the mouse
.WithHardware // use hardware emulation to interact with this item, jumps mouse and hardware clicks
//.WithSimulateMouse // use this to move the mouse like a human, and hardware click (implies .WithHardware)
.ToGPALObject();
GPAL.Browser
.WithBrowserType(BrowserType.FireFox)
.WithDriverLocation(@"c:\drivers")
.WithWaitOnDocumentReady(true)
.GoTo("https://www.ebay.com/") // Goto ebay
.LeftClick(optionSelector1) // left click the menu item [Pottery & Glass]
// gpal knows it's a select, just specify the option, no need to click to open the menu
.Close(true); // true = kill the driver (if using selenium), kill REST API (if using OttoMagic)
No special academy training, just about anyone can start writing GPAL bots.
- Unique programming paradigm not seen in any other software simplifies everything
- Changes the business model everyone is emulating with "Low Code" visual programming
- Brings automation to more businesses/people
- Is useable by the vast majority of talent because no special training academy is required
- Is a sensible solution to everyday business automation needs