Better keyword usage experience
mikahanninen opened this issue · comments
List of cases where a developer needs to use for example Evaluate or inline Python evaluation and the usage is difficult or unclear.
- Handling
Get WebElement/WebElements
results, ie WebElement object and its methods - Handling
WindowsElement.item
object methods
Could browse through our codebase to see some examples of Evaluate usage:
https://github.com/search?q=org%3Arobocorp+Evaluate+extension%3Arobot+language%3ARobotFramework&type=Code&ref=advsearch&l=RobotFramework&l=
Potential ones from the search:
- rounding numbers
- generating random numbers
- parsing url segments
- string contains
- date equals comparison
- marking chromedriver as undetected
Any code snippets people regularly use might warrant a new keyword itself.
The RPA.Tables - getting columns from a table
${columns}= Evaluate $table.columns
For RPA.Windows
, I would like to have a keyword that returns True if an element has children, or a keyword that gives you the list of children directly.
Edited to add: Also a reference to the parent element.