Skip to content
guilhermechapiewski edited this page Sep 13, 2010 · 27 revisions

Element actions

I do not see “element_name” [element_type|element selector]

Regex:

^(And )?I do not see [\"](?P<element_name>.+)[\"] (?P<element_type><element selector>)$

Asserts that a specific element is not visible.

I see “element_name” [element_type|element selector] contains “text”

Regex:

^(And )?I see [\"](?P<element_name>[^"]+)[\"] (?P<element_type><element selector>) contains [\"](?P<text>.+)[\"]$

No documentation for this action yet.

I see “element_name” [element_type|element selector] does not contain “text”

Regex:

^(And )?I see [\"](?P<element_name>[^"]+)[\"] (?P<element_type><element selector>) does not contain [\"](?P<text>.+)[\"]$

No documentation for this action yet.

I click “element_name” [element_type|element selector]( and wait)

Regex:

^(And )?I click [\"](?P<element_name>[^"]+)[\"] (?P<element_type><element selector>)(?P<should_wait> and wait)?$

Clicks on a specific element.

I see “element_name” [element_type|element selector] is disabled

Regex:

^(And )?I see [\"](?P<element_name>[^"]+)[\"] (?P<element_type><element selector>) is disabled$

Asserts that a specific element is disabled.

I see “element_name” [element_type|element selector] contains “markup” markup

Regex:

^(And )?I see [\"](?P<element_name>[^"]+)[\"] (?P<element_type><element selector>) contains [\"](?P<markup>.+)[\"] markup$

No documentation for this action yet.

I see “element_name” [element_type|element selector] does not have “style_name” style

Regex:

^(And )?I see [\"](?P<element_name>.+)[\"] (?P<element_type><element selector>) does not have [\"](?P<style_name>.+)[\"] style$

Ensure that a specific element does not contain some style.

I see “element_name” [element_type|element selector] does not match “text”

Regex:

^(And )?I see [\"](?P<element_name>[^"]+)[\"] (?P<element_type><element selector>) does not match [\"](?P<text>.+)[\"]$

No documentation for this action yet.

I mouseout “element_name” [element_type|element selector]

Regex:

^(And )?I mouseout [\"](?P<element_name>[^"]+)[\"] (?P<element_type><element selector>)$

No documentation for this action yet.

I see “element_name” [element_type|element selector] matches “text”

Regex:

^(And )?I see [\"](?P<element_name>[^"]+)[\"] (?P<element_type><element selector>) matches [\"](?P<text>.+)[\"]$

No documentation for this action yet.

I see “element_name” [element_type|element selector]

Regex:

^(And )?I see [\"](?P<element_name>.+)[\"] (?P<element_type><element selector>)$

Asserts that a specific element is visible.

I see “element_name” [element_type|element selector] has “style_name” style

Regex:

^(And )?I see [\"](?P<element_name>.+)[\"] (?P<element_type><element selector>) has [\"](?P<style_name>.+)[\"] style$

Ensure that a specific element contains some style.

I see “element_name” [element_type|element selector] matches “markup” markup

Regex:

^(And )?I see [\"](?P<element_name>[^"]+)[\"] (?P<element_type><element selector>) matches [\"](?P<markup>.+)[\"] markup$

No documentation for this action yet.

I mouseover “element_name” [element_type|element selector]

Regex:

^(And )?I mouseover [\"](?P<element_name>[^"]+)[\"] (?P<element_type><element selector>)$

No documentation for this action yet.

I see “element_name” [element_type|element selector] does not contain “markup” markup

Regex:

^(And )?I see [\"](?P<element_name>[^"]+)[\"] (?P<element_type><element selector>) does not contain [\"](?P<markup>.+)[\"] markup$

No documentation for this action yet.

I see “element_name” [element_type|element selector] does not match “markup” markup

Regex:

^(And )?I see [\"](?P<element_name>[^"]+)[\"] (?P<element_type><element selector>) does not match [\"](?P<markup>.+)[\"] markup$

No documentation for this action yet.

I wait for “element_name” [element_type|element selector] to disappear( for X seconds)

Regex:

^(And )?I wait for [\"](?P<element_name>[^"]+)[\"] (?P<element_type><element selector>) to disappear( for (?P<timeout>\d+) seconds)?$

Waits until a given element disappears (or is not visible already) or times out.

I see “element_name” [element_type|element selector] is enabled

Regex:

^(And )?I see [\"](?P<element_name>[^"]+)[\"] (?P<element_type><element selector>) is enabled$

Asserts that a specific element is enabled.

I wait for “element_name” [element_type|element selector] to be present( for X seconds)

Regex:

^(And )?I wait for [\"](?P<element_name>[^"]+)[\"] (?P<element_type><element selector>) to be present( for (?P<timeout>\d+) seconds)?$

Waits until a given element appears or times out.

I drag the “from_element_name” [from_element_type|element selector] to the “to_element_name” [to_element_type|element selector]

Regex:

^(And )?I drag the [\"](?P<from_element_name>.+)[\"] (?P<from_element_type><element selector>) to the [\"](?P<to_element_name>.+)[\"] (?P<to_element_type><element selector>)?$

No documentation for this action yet.

Checkbox actions

I see the “checkbox_key” checkbox is not checked

Regex:

^(And )?I see the [\"](?P<checkbox_key>.+)[\"] checkbox is not checked$

No documentation for this action yet.

I uncheck the “checkbox_key” checkbox

Regex:

^(And )?I uncheck the [\"](?P<checkbox_key>.+)[\"] checkbox$

No documentation for this action yet.

I see the “checkbox_key” checkbox is checked

Regex:

^(And )?I see the [\"](?P<checkbox_key>.+)[\"] checkbox is checked$

No documentation for this action yet.

I check the “checkbox_key” checkbox

Regex:

^(And )?I check the [\"](?P<checkbox_key>.+)[\"] checkbox$

Test docstring.

Select actions

I see “select_name” select has selected text of “text”

Regex:

^(And )?I see [\"](?P<select_name>.+)[\"] select has selected text of [\"](?P<text>.+)[\"]$

No documentation for this action yet.

I see “select_name” select does not contain an option with text “text”

Regex:

^(And )?I see [\"](?P<select_name>.+)[\"] select does not contain an option with text [\"](?P<text>.+)[\"]$

No documentation for this action yet.

I see “select_name” select contains an option with text “text”

Regex:

^(And )?I see [\"](?P<select_name>.+)[\"] select contains an option with text [\"](?P<text>.+)[\"]$

No documentation for this action yet.

I select the option with text of “text” in “select_name” select

Regex:

^(And )?I select the option with text of [\"](?P<text>.+)[\"] in [\"](?P<select_name>.+)[\"] select$

No documentation for this action yet.

I see “select_name” select does not have selected index of X

Regex:

^(And )?I see [\"](?P<select_name>.+)[\"] select does not have selected index of (?P<index>\d+)$

No documentation for this action yet.

I see “select_name” select has selected value of “option_value”

Regex:

^(And )?I see [\"](?P<select_name>.+)[\"] select has selected value of [\"](?P<option_value>.+)[\"]$

No documentation for this action yet.

I select the option with value of “option_value” in “select_name” select

Regex:

^(And )?I select the option with value of [\"](?P<option_value>.+)[\"] in [\"](?P<select_name>.+)[\"] select$

No documentation for this action yet.

I see “select_name” select does not have selected text of “text”

Regex:

^(And )?I see [\"](?P<select_name>.+)[\"] select does not have selected text of [\"](?P<text>.+)[\"]$

No documentation for this action yet.

I select the option with index of X in “select_name” select

Regex:

^(And )?I select the option with index of (?P<index>\d+) in [\"](?P<select_name>.+)[\"] select$

No documentation for this action yet.

I see “select_name” select has selected index of X

Regex:

^(And )?I see [\"](?P<select_name>.+)[\"] select has selected index of (?P<index>\d+)$

No documentation for this action yet.

I see “select_name” select does not have selected value of “value”

Regex:

^(And )?I see [\"](?P<select_name>.+)[\"] select does not have selected value of [\"](?P<value>.+)[\"]$

No documentation for this action yet.

Radio actions

I see the “radio_key” radio is checked

Regex:

^(And )?I see the [\"](?P<radio_key>.+)[\"] radio is checked$

No documentation for this action yet.

I see the “radio_key” radio is not checked

Regex:

^(And )?I see the [\"](?P<radio_key>.+)[\"] radio is not checked$

No documentation for this action yet.

I check the “radio_key” radio

Regex:

^(And )?I check the [\"](?P<radio_key>.+)[\"] radio$

No documentation for this action yet.

Image actions

I see “image_name” image has src of “src”

Regex:

^(And )?I see [\"](?P<image_name>.+)[\"] image has src of [\"](?P<src>.+)[\"]$

No documentation for this action yet.

I see “image_name” image does not have src of “src”

Regex:

^(And )?I see [\"](?P<image_name>.+)[\"] image does not have src of [\"](?P<src>.+)[\"]$

No documentation for this action yet.

Textbox actions

I slowly fill “textbox_name” textbox with “text”

Regex:

^(And )?I slowly fill [\"](?P<textbox_name>.+)[\"] textbox with [\"](?P<text>.+)[\"]$

No documentation for this action yet.

I see “textbox_name” textbox is empty

Regex:

^(And )?I see [\"](?P<textbox_name>.+)[\"] textbox is empty$

No documentation for this action yet.

I clean “textbox_name” textbox

Regex:

^(And )?I clean [\"](?P<textbox_name>.+)[\"] textbox$

No documentation for this action yet.

I fill “textbox_name” textbox with “text”

Regex:

^(And )?I fill [\"](?P<textbox_name>.+)[\"] textbox with [\"](?P<text>.+)[\"]$

No documentation for this action yet.

I see “textbox_name” textbox is not empty

Regex:

^(And )?I see [\"](?P<textbox_name>.+)[\"] textbox is not empty$

No documentation for this action yet.

Link actions

I see “link_name” link has “href” href

Regex:

^(And )?I see [\"](?P<link_name>.+)[\"] link has [\"](?P<href>.+)[\"] href$

No documentation for this action yet.

Page actions

I go to [page|“url”]

Regex:

^(And )?I go to (?P<url>[\"]([\w:/._-]+)[\"]|([\w\s_.-]+))$

Navigates to a page or url.

I see that current page does not contain “expected_markup”

Regex:

^(And )?I see that current page does not contain [\"\'](?P<expected_markup>.+)[\'\"]$

No documentation for this action yet.

I am in the [page|“url”]

Regex:

^(And )?I am in the (?P<url>[\"]([\w:/._-]+)[\"]|([\w\s_.-]+))$

Changes the current page without actually navigating to it.

I wait for the page to load( for X seconds)

Regex:

^(And )?I wait for the page to load( for (?P<timeout>\d+) seconds)?$

No documentation for this action yet.

I see “title” title

Regex:

^(And )?I see [\"](?P<title>.+)[\"] title$

No documentation for this action yet.

I wait for [X|X.X] second[s]

Regex:

^(And )?I wait for (?P<timeout>\d+([.]\d+)?) second[s]?$

No documentation for this action yet.

I see that current page contains “expected_markup”

Regex:

^(And )?I see that current page contains [\"\'](?P<expected_markup>.+)[\'\"]$

No documentation for this action yet.

Clone this wiki locally