Basic GuiWidget Locators¶
Following are the basic locators supported and corresponding Selenium By locators.
The locator strategy in GNS files is expressed using locator type names supported by Arjuna. These are simple locators and hence are expressed as basic key value pairs, almost equivalent to the way you pass them as keyword arguments in app.element calls. Functionality is equivalent as well.
Locates a GuiWidget by the content of its id attribute.
user_id: id: user_login
Locates a GuiWidget by the content of its name attribute.
user_name: name: log
Locates a GuiWidget by a class name contained in its class attribute. For more advanced usage, see locator_exts.
user_class: classes: input
Locates a GuiWidget by the specifield XML Path (xpath).
lost_pass_text_content: xpath: "//*[contains(text(), 'Lost')]"
Locates a GuiWidget by the specifield CSS Selector.
button_compound_class: selector: ".button.button-large"