Testing Area/Behat Testing/Selectors and Elements
From Mahara Wiki
< Testing Area | Behat Testing
Element and Selectors are to be used in unisen. An Element is the title of the selector you are using. Ie, If you need to press a button. The button is the selector and then Element is the name of the button.
As an example:
And "$elements" "$selector" should be visible
Would be written as:
And "Create page" "button" should be visible
Elements
Element and Selectors are to be used in unisen.
Selectors
Where ever it says "Selector" any of these forms of selectors can be used:
- dialogue
- block
- region
- table_row
- link
- button
- link_or_button
- select
- checkbox
- radio
- file
- filemanager
- optgroup
- option
- table
- field
- fieldset
- text
- css_element
- xpath_element