Sha256: 649f71d43ed4a03feeb436da7b5415bc0a14f29c0e3fa2889a492bd7f55512c5

Contents?: true

Size: 1.1 KB

Versions: 10

Compression:

Stored size: 1.1 KB

Contents

require_relative 'web/web_methods'

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

When(/^I fill in "(.*?)" with "(.*?)"$/) 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 click on element "(.*?)"$/) do |link|
  click_link(link)
end

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

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

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

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

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

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

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

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

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
bddfire-1.8.4 lib/bddfire/web_steps.rb
bddfire-1.8.3 lib/bddfire/web_steps.rb
bddfire-1.8.2 lib/bddfire/web_steps.rb
bddfire-1.8.1 lib/bddfire/web_steps.rb
bddfire-1.8.0 lib/bddfire/web_steps.rb
bddfire-1.7.9 lib/bddfire/web_steps.rb
bddfire-1.7.8 lib/bddfire/web_steps.rb
bddfire-1.7.7 lib/bddfire/web_steps.rb
bddfire-1.7.6 lib/bddfire/web_steps.rb
applenium-0.0.8 lib/applenium/web_steps.rb