Sha256: d116ed4e467c58b18f42a4d3cde5794a298c28ca240326c8b51d9d95e21b592f

Contents?: true

Size: 929 Bytes

Versions: 3

Compression:

Stored size: 929 Bytes

Contents

Then /^I should be able to get the options available of it$/ do
  @browser.select_get_options.should == ["...","Cello","Cucumber","Ruby","Rspec","QA Rocks!"]
  @browser.close
end

Then /^I should be able to select an option on it$/ do
  @browser.select_select("Cucumber")
end

Then /^be sure that the option setted is the option selected$/ do
  @browser.select_is("Cucumber").should be_true
  @browser.close
end

Given /^the option "(.*?)" is selected$/ do |option|
  @browser.select_select option
end

Then /^I should be able to know the option "(.*?)" is selected$/ do |option|
  @browser.select_selected.should == option
  @browser.close
end

Then /^I should fail when ask if the option "(.*?)" is selected$/ do |option|
  @browser.select_selected.should_not == option
  @browser.close
end

Then /^I should be able to go to the default option of it$/ do
  @browser.select_clear
  @browser.select_selected.should == "..."
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cello-0.0.23 features/step_definitions/select.rb
cello-0.0.21 features/step_definitions/select.rb
cello-0.0.19 features/step_definitions/select.rb