Sha256: c348ce46ea633198a3291e8c4bdf2bf4799fc083248a7e1ad5f88570fb79a717

Contents?: true

Size: 1.11 KB

Versions: 4

Compression:

Stored size: 1.11 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 the element "([^"]*)"$/) do |element|
  page.find(element).hover
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
bddfire-3.0.2 lib/bddfire/web/web_steps.rb
bddfire-3.0.1 lib/bddfire/web/web_steps.rb
bddfire-3.0.0 lib/bddfire/web/web_steps.rb
bddfire-2.0.8 lib/bddfire/web/web_steps.rb