Sha256: 0c9abafbdae38ac05bda915687f412efa888234c3f33d83f4c846112fa114f97
Contents?: true
Size: 1.02 KB
Versions: 2
Compression:
Stored size: 1.02 KB
Contents
Given /^I am on a page that has a select$/ do @page = StaticPages::Site::Firefox.new @page.context StaticPages::Site::InputPage @page.visit end Then /^I should be able to get the options available of it$/ do @page.select_get_options.should == ["...","Cello","Cucumber","Ruby","Rspec","QA Rocks!"] @page.close end Then /^I should be able to select an option on it$/ do @page.select_select("Cucumber") end Then /^be sure that the option setted is the option selected$/ do @page.select_is("Cucumber").should be_true @page.close end Given /^the option "(.*?)" is selected$/ do |option| @page.select_select option end Then /^I should be able to know the option "(.*?)" is selected$/ do |option| @page.select_selected.should == option @page.close end Then /^I should fail when ask if the option "(.*?)" is selected$/ do |option| @page.select_selected.should_not == option @page.close end Then /^I should be able to go to the default option of it$/ do @page.select_clear @page.select_selected.should == "..." end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cello-0.0.17 | features/step_definitions/select.rb |
cello-0.0.16 | features/step_definitions/select.rb |