![]() |
GPAL - Generally Positive Automation Library v1.0
GPAL The Fluent Automation LIbrary
|
Everything revolves around the Unit of Work.
A Unit of Work is defined as one or more selectors between actions (GoTo, Run, LeftClick, Hover, etc.)
Use this only for debugging.
More...
Classes | |
| class | WebElementWithType |
| add iframe and shadow dom elements in order to navigate them before finding a web element | |
| class | ElementNode |
Properties | |
| List< Selector > | WithSelectorList = null [get, set] |
| List of With selectors Use .WithSelector to add selectors to this list. | |
| List< Selector > | InSelectorList = null [get, set] |
| List of iframe or shadow dom selectors. Set using .InFrame() or .InShadowDom() Use .InFrame to add frames to this list. | |
| Selector | CurrentSelector = null [get, set] |
| The current selector being used from the current UOW. The selectors are iterated in declared order. | |
| Selector | NextPageButton = null [get, set] |
| The next page button. When scraping multiple pages of results, this element is pressed for a new page of results. Use with .WithPages() to retrieve multiple pages of data. Use .WithNextPageButton to set this value Use .WithInfiniteScroll if there is no next page button, and to go to page end to load a new page of results. | |
| bool | InfiniteScroll = false [get, set] |
| Go to page end to get the next page of results. Use with .WithPages() to retrieve multiple pages of data. Use .WithNextPageButton() if there is a next page button for more results. Use .WithInfiniteScroll to set this value. | |
| int | PageCount = 1 [get, set] |
| Number of pages to retrieve. Default is 1 page. Use .WithPages() to set this value. | |
| List< string > | TokenList = null [get, set] |
| Input data grid retrieved from a file or database. A grid is rows and columns. Each column value is a token to consume. If not enough or too many tokens are present on a line for the defined elements, an Information Channel message will be broadcast indicating either not enough or too many tokens are supplied. | |
| List< string > | HeaderList = null [get, set] |
| Output header list, Defined using .WithHeader or, if not supplied, from the names given to selectors. If no headers are supplied, this is filled from selector names only on file save methods. If no headers or selector names are supplied, no header will be output. If not enough headers are supplied for the columns of output, an Information Channel message will be broadcast stating as much. | |
| bool | PartialMatch = false [get, set] |
| Only relevant if there is a match criteria or matching function. Of all the found selectors, was there only a partial match? If there is no match criteria/function, this is always false and matched and found results are the same. | |
| bool | ActionCalled = false [get, set] |
| Has an action been called on the current unit of work? If true, then the next .WithSelector() will create a new UOW. | |
| int | WithAllThatMatch = int.MaxValue [get, set] |
| Controls whether the selectors in scope are multiple elements on screen, and to get all Use .WithAllThatMatch to set this value. | |
| CallIfStatus | CallIfFoundHandled = CallIfStatus.NotHandled [get, set] |
| CallIfStatus | CallIfNotFoundHandled = CallIfStatus.NotHandled [get, set] |
| CallIfStatus | AppCallIfFoundHandled = CallIfStatus.NotHandled [get, set] |
| CallIfStatus | AppCallIfNotFoundHandled = CallIfStatus.NotHandled [get, set] |
| GPALFile | InputFile [get, set] |
| The input File from which to consume tokens. This is set using any [Append/FillIn/Insert]FromFile method Tokens are loaded when the file is loaded. | |
| IGPALDatabase | InputDatabase [get, set] |
| The input database from which to consume tokens. This is set using any [Append/FillIn/Insert]FromDatabase method Tokens are loaded when the database is loaded. | |
| Browser.Browser | Browser [get, set] |
Everything revolves around the Unit of Work.
A Unit of Work is defined as one or more selectors between actions (GoTo, Run, LeftClick, Hover, etc.)
Use this only for debugging.
Definition at line 38 of file UnitOfWork.cs.
|
getset |
Has an action been called on the current unit of work?
If true, then the next .WithSelector() will create a new UOW.
Definition at line 161 of file UnitOfWork.cs.
|
getset |
Definition at line 201 of file UnitOfWork.cs.
|
getset |
Definition at line 202 of file UnitOfWork.cs.
|
getset |
Definition at line 219 of file UnitOfWork.cs.
|
getset |
Definition at line 199 of file UnitOfWork.cs.
|
getset |
Definition at line 200 of file UnitOfWork.cs.
|
getset |
The current selector being used from the current UOW. The selectors are iterated in declared order.
Definition at line 58 of file UnitOfWork.cs.
|
getset |
Output header list, Defined using .WithHeader or, if not supplied, from the names given to selectors.
If no headers are supplied, this is filled from selector names only on file save methods.
If no headers or selector names are supplied, no header will be output.
If not enough headers are supplied for the columns of output, an Information Channel message will be broadcast stating as much.
Definition at line 145 of file UnitOfWork.cs.
|
getset |
Go to page end to get the next page of results.
Use with .WithPages() to retrieve multiple pages of data.
Use .WithNextPageButton() if there is a next page button for more results. Use .WithInfiniteScroll to set this value.
Definition at line 74 of file UnitOfWork.cs.
|
getset |
The input database from which to consume tokens.
This is set using any [Append/FillIn/Insert]FromDatabase method
Tokens are loaded when the database is loaded.
Definition at line 217 of file UnitOfWork.cs.
|
getset |
The input File from which to consume tokens.
This is set using any [Append/FillIn/Insert]FromFile method
Tokens are loaded when the file is loaded.
Definition at line 210 of file UnitOfWork.cs.
|
getset |
List of iframe or shadow dom selectors. Set using .InFrame() or .InShadowDom() Use .InFrame to add frames to this list.
Definition at line 53 of file UnitOfWork.cs.
|
getset |
The next page button. When scraping multiple pages of results, this element is pressed for a new page of results.
Use with .WithPages() to retrieve multiple pages of data.
Use .WithNextPageButton to set this value Use .WithInfiniteScroll if there is no next page button, and to go to page end to load a new page of results.
Definition at line 66 of file UnitOfWork.cs.
|
getset |
Number of pages to retrieve. Default is 1 page.
Use .WithPages() to set this value.
Definition at line 80 of file UnitOfWork.cs.
|
getset |
Only relevant if there is a match criteria or matching function.
Of all the found selectors, was there only a partial match?
If there is no match criteria/function, this is always false and matched and found results are the same.
Definition at line 153 of file UnitOfWork.cs.
|
getset |
Input data grid retrieved from a file or database.
A grid is rows and columns. Each column value is a token to consume.
If not enough or too many tokens are present on a line for the defined elements, an Information Channel message will be broadcast indicating either not enough or too many tokens are supplied.
Definition at line 96 of file UnitOfWork.cs.
|
getset |
Controls whether the selectors in scope are multiple elements on screen, and to get all
Use .WithAllThatMatch to set this value.
Definition at line 171 of file UnitOfWork.cs.
|
getset |
List of With selectors Use .WithSelector to add selectors to this list.
Definition at line 45 of file UnitOfWork.cs.