How to Use XPath in ZeroWork (advanced)
Last updated
Last updated
As mentioned previously, ZeroWork supports both CSS and XPath selectors. In this documentation, we are mostly focusing on CSS selectors only, as they are more beginner- and intermediate-friendly. We expect more advanced users to be already familiar with how to use XPath.
TaskBots will automatically recognize an XPath selector, when it starts with double slash //. Example below.
Additionally, you can also explicitly state xpath like so: xpath=//button
.
To iterate over a list of incrementing XPath selectors, use the same syntax with loop_index, as explained here: . Example below.