Test Report
open all
|
close all
root
Self Test Features
1: A feature to self test the webdriver substeps implementations
1-1: Scn: a scenario
1-1-1: Given I go to the self test page
1-1-1-1: NavigateTo /self-test.html
1-1-2: Then I can see '<page_title>'
1-1-2-1: AssertPageTitle is "Hello Self Test page"
1-1-3: And if I click the '<btn_text>' button
1-1-3-1: ClickSubmitButton "click me"
1-1-4: Then I can see "<msg>" message
1-1-4-1: AssertValue id show-text-on-button-click-text-div-id text = "Wahoo"
1-1-5: And I dont see "<option_value>" in select id <select_id>
1-1-5-1: AssertSelect id="select_id" text="number one option" is not currently selected
1-1-6: And I see "<option_value>" in select id <select_id>
1-1-6-1: AssertSelect id="select_id" text="number two option" is currently selected
1-1-7: Then I choose "<option_value>" in select id <select_id>
1-1-7-1: ChooseOption "number three option" in id select_id
1-1-8: And I see "<option_value>" in select id <select_id>
1-1-8-1: AssertSelect id="select_id" text="number three option" is currently selected
1-1-9: And if I click the Click by id button
1-1-9-1: ClickById click-id
1-1-10: Then I can see another "<msg>" message
1-1-10-1: AssertValue id show-text-on-id-click-text-div-id text = "Wahoo Two"
1-1-11: And if I click the '<btn_text>' button
1-1-11-1: ClickSubmitButton "delayed click"
1-1-12: Then I see "<msg>" after a pause
1-1-12-1: FindByIdTimeout show-text-on-deplayed-id-click-text-div-id timeout = 10 secs
1-1-13: Given I enter "<txt>" into the text field
1-1-13-1: FindByTagAndAttributes tag="input" attributes=[name="named_text_field",maxlength="10",size="10"]
1-1-13-2: ClearAndSendKeys "some text"
1-1-14: Then the text field will contain "<txt>"
1-1-14-1: FindByName "named_text_field"
1-1-14-2: AssertCurrentElement attribute="value" value="some text"
1-1-15: And the field located beneath the heading has the text '<txt>'
1-1-15-1: FindById parent_div_id
1-1-15-2: FindChild ByTagAndAttributes tag="span" attributes=[class="some_class"]
1-1-15-3: AssertCurrentElement text="some child text"
1-1-16: And I can click the link "<link_text>" and see "<txt>"
1-1-16-1: ClickLink "a text link"
1-1-16-2: FindById show-text-on-link-click-text-div-id
1-1-16-3: AssertCurrentElement text="clicked a link"
1-1-17: Given radio button with text "<rb_text>" is checked
1-1-17-1: FindRadioButton inside tag="label" with label="radio - option 1"
1-1-17-2: AssertRadioButton checked=true
1-1-18: Given radio button with text "<rb_text>" is not checked
1-1-18-1: FindRadioButton inside tag="label" with label="radio - option 2"
1-1-18-2: AssertRadioButton checked=false
1-1-19: Then I can check radio button with text "<rb_text>"
1-1-19-1: FindRadioButton inside tag="label" with label="radio - option 3"
1-1-19-2: SetRadioButton checked=true
1-1-20: Then radio button with text "<rb_text>" is checked
1-1-20-1: Given radio button with text "<rb_text>" is checked
1-1-20-1-1: FindRadioButton inside tag="label" with label="radio - option 3"
1-1-20-1-2: AssertRadioButton checked=true
1-1-21: Given checkbox with text "<cb_text>" is not checked
1-1-21-1: FindCheckbox inside tag="label" with label="a checkbox label"
1-1-21-2: AssertCheckBox checked=false
1-1-22: Then I can check checkbox with text "<cb_text>"
1-1-22-1: SetCheckedBox checked=true
1-1-23: And checkbox with text "<cb_text>" is checked
1-1-23-1: FindCheckbox inside tag="label" with label="a checkbox label"
1-1-23-2: AssertCheckBox checked=true