List of predefined steps¶
Given Steps 👷¶
I open the site "([^"]*)?"I open the url "([^"]*)?"I have a screen that is ([\d]+) by ([\d]+) pixelsI have a screen that is ([\d]+) pixels (broad|tall)I have closed all but the first (window|tab)I pause for (\d+)*msa (alertbox|confirmbox|prompt) is( not)* openedthe base url is "([^"]*)?"the checkbox "([^"]*)?" is( not)* checkedthe cookie "([^"]*)?" contains( not)* the value "([^"]*)?"the cookie "([^"]*)?" does( not)* existthe element "([^"]*)?" contains( not)* the same text as element "([^"]*)?"the element "([^"]*)?" is( not)* ([\d]+)px (broad|tall)the element "([^"]*)?" is( not)* emptythe element "([^"]*)?" is( not)* enabledthe element "([^"]*)?" is( not)* positioned at ([\d]+)px on the (x|y) axisthe element "([^"]*)?" is( not)* selectedthe element "([^"]*)?" is( not)* visiblethe element "([^"]*)?"( not)* contains any textthe element "([^"]*)?"( not)* contains the text "([^"]*)?"the element "([^"]*)?"( not)* matches the text "([^"]*)?"the page url is( not)* "([^"]*)?"the title is( not)* "([^"]*)?"the( css)* attribute "([^"]*)?" from element "([^"]*)?" is( not)* "([^"]*)?"there is (an|no) element "([^"]*)?" on the page
When Steps ▶️¶
I open the site "([^"]*)?"I open the url "([^"]*)?"I accept the (alertbox|confirmbox|prompt)I add "{value}" to the inputfield "{element}"I clear the inputfield "{element}"I click on the button "{element}"I click on the element "{element}"I click on the link "{link_text}"I close the last opened (tab|window)I delete the cookie "{cookie_key}"I dismiss the (alertbox|confirmbox|prompt)I doubleclick on the element "{element}"I drag element "{from_element}" to element "{to_element}"I enter "([^"]*)?" into the (alertbox|confirmbox|prompt)I focus the last opened (tab|window)I move to element "{element}" with an offset of {x_offset:d},{y_offset:d}I move to element "{element}"I pause for {milliseconds:d}msI press "{key}"I scroll to element "{element}"I select the option with the (text|value|name) "([^"]*)?" for element "([^"]*)?"I select the {nth} option for element "{element}"I set "{value}" to the inputfield "{element}"I set a cookie "{cookie_key}" with the content "{value}"I submit the form "{element}"
Then Steps ✔️¶
I expect the screen is ([\d]+) by ([\d]+) pixelsI expect a new (window|tab) has( not)* been openedI expect that a (alertbox|confirmbox|prompt) is( not)* openedI expect that a (alertbox|confirmbox|prompt)( not)* contains the text "([^"]*)?"I expect that checkbox "([^"]*)?" is( not)* checkedI expect that cookie "([^"]*)?"( not)* contains "([^"]*)?"I expect that cookie "([^"]*)?"( not)* existsI expect that element "([^"]*)?" (has|does not have) the class "([^"]*)?"I expect that element "([^"]*)?" becomes( not)* visibleI expect that element "([^"]*)?" does( not)* existI expect that element "([^"]*)?" is( not)* ([\d]+)px (broad|tall)I expect that element "([^"]*)?" is( not)* emptyI expect that element "([^"]*)?" is( not)* enabledI expect that element "([^"]*)?" is( not)* focusedI expect that element "([^"]*)?" is( not)* positioned at ([\d]+)px on the (x|y) axisI expect that element "([^"]*)?" is( not)* selectedI expect that element "([^"]*)?" is( not)* visibleI expect that element "([^"]*)?" is( not)* within the viewportI expect that element "([^"]*)?"( not)* contains any textI expect that element "([^"]*)?"( not)* contains the same text as element "([^"]*)?"I expect that element "([^"]*)?"( not)* contains the text "([^"]*)?"I expect that element "([^"]*)?"( not)* matches the text "([^"]*)?"I expect that the path is( not)* "([^"]*)?"I expect that the title is( not)* "([^"]*)?"I expect that the url is( not)* "([^"]*)?"I expect that the( css)* attribute "([^"]*)?" from element "([^"]*)?" is( not)* "([^"]*)?"I expect the url "([^"]*)?" is opened in a new (tab|window)I expect the url to( not)* contain "([^"]*)?"I wait on element "([^"]*)?"(?: for (\d+)ms)*(?: to( not)* (be checked|be enabled|be selected|be visible|contain a text|contain a value|exist))*