Sha256: e5d5121b17e16eac65ef1831afc5835040bf58bbd9570c065c5550b451735a31

Contents?: true

Size: 1.08 KB

Versions: 7

Compression:

Stored size: 1.08 KB

Contents

Given(/^I am on "(.*?)"$/) do |url|
  visit(url)
end

When(/^I fill in "(.*?)" with the text "(.*?)"$/) do |element, text|
  fill_in element, with: text
end

Then(/^I should see "(.*?)"$/) do |text|
  page.should have_content text
end

When(/^I fill "(.*?)" into field with (.+) "(.*?)"$/) do |data, type, locator|
  fill_in locator, with: data
end

When(/^I select the "(.*?)" link$/)  do |link|
  click_link(link)
end

When(/^I select the "(.*?)" button$/) do |button|
  click_button(button)
end

When(/^I click on link having text "(.*?)"$/) do |text|
  click_link(text)
end

When(/^I check checkbox "(.*?)"$/) do |box|
  check(box)
end

When(/^I uncheck checkbox "(.*?)"$/) do |box|
  uncheck(box)
end

When(/^I choose radio button"(.*?)"$/) do |radiobutton|
  choose(radiobutton)
end

When(/^I select option "(.*?)" from the dropdown "(.*?)"$/) do |option, dropdown|
  select(option, :from => dropdown)
end

When(/^I attach the file "(.*?)" to the field "(.*?)"$/) do |file, locator|
  attach_file(locator, file)
end

When(/^I hover over thr element"(.*?)"$/) do |element|
  page.find(element).hover
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
bddfire-1.9.7 lib/bddfire/web/web_steps.rb
bddfire-1.9.6 lib/bddfire/web/web_steps.rb
bddfire-1.9.5 lib/bddfire/web/web_steps.rb
bddfire-1.9.4 lib/bddfire/web/web_steps.rb
bddfire-1.9.3 lib/bddfire/web/web_steps.rb
bddfire-1.9.2 lib/bddfire/web/web_steps.rb
bddfire-1.9.1 lib/bddfire/web/web_steps.rb