Sha256: 0c9a21c293841a692ef8bc91f784984528788b75f135bf5e207df958cff8c126

Contents?: true

Size: 929 Bytes

Versions: 11

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

11 entries across 11 versions & 1 rubygems

Version Path
cello-0.0.35 features/step_definitions/select.rb
cello-0.0.34 features/step_definitions/select.rb
cello-0.0.33 features/step_definitions/select.rb
cello-0.0.32 features/step_definitions/select.rb
cello-0.0.31 features/step_definitions/select.rb
cello-0.0.30 features/step_definitions/select.rb
cello-0.0.29 features/step_definitions/select.rb
cello-0.0.28 features/step_definitions/select.rb
cello-0.0.27 features/step_definitions/select.rb
cello-0.0.26 features/step_definitions/select.rb
cello-0.0.25 features/step_definitions/select.rb