Sha256: 2b2fe03712e2a48e817d983522fa7611784b9bdfabc0154be060737fa950e66c

Contents?: true

Size: 843 Bytes

Versions: 13

Compression:

Stored size: 843 Bytes

Contents

require 'uri'

Given(/^I have started a browser$/) do
  @env.browser
end

Given(/^I am using a local browser$/) do
  allow(@env).to receive(:remote?).and_return(false)
end

When(/^I have started interacting with the browser$/) do
  @env.browser
end

When(/^I start interacting with the browser$/) do
  @env.browser
end

When(/^I navigate to the `wiki_url`$/) do
  @env.browser.goto @env.wiki_url
end

When(/^teardown is called$/) do
  @env.teardown
end

Then(/^the browser is open$/) do
  expect(@env.browser).to exist
end

Then(/^the wiki page should have loaded$/) do
  expect(@env.browser.element(tag_name: 'body', class: 'mediawiki')).to be_present
end

Then(/^the browser should have closed$/) do
  expect(@env.browser).to_not exist
end

Then(/^the browser name is `:(.*?)`$/) do |type|
  expect(@env.browser.name).to eq(type.to_sym)
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
mediawiki_selenium-1.8.1 features/step_definitions/browser_steps.rb
mediawiki_selenium-1.8.0 features/step_definitions/browser_steps.rb
mediawiki_selenium-1.7.4 features/step_definitions/browser_steps.rb
mediawiki_selenium-1.7.3 features/step_definitions/browser_steps.rb
mediawiki_selenium-1.7.2 features/step_definitions/browser_steps.rb
mediawiki_selenium-1.7.1 features/step_definitions/browser_steps.rb
mediawiki_selenium-1.7.0 features/step_definitions/browser_steps.rb
mediawiki_selenium-1.6.5 features/step_definitions/browser_steps.rb
mediawiki_selenium-1.6.4 features/step_definitions/browser_steps.rb
mediawiki_selenium-1.6.3 features/step_definitions/browser_steps.rb
mediawiki_selenium-1.6.2 features/step_definitions/browser_steps.rb
mediawiki_selenium-1.6.1 features/step_definitions/browser_steps.rb
mediawiki_selenium-1.6.0 features/step_definitions/browser_steps.rb