mediawiki_selenium Ruby gem is now able to start local and remote browsers with optional browser setup. Paired with Kartik Mistry. Bug: 62512 Change-Id: I61e5b688711b1976e8df8be94972fe35f6eeb9aa
13 lines
395 B
Ruby
13 lines
395 B
Ruby
Given(/^that my browser's accept language is (.+)$/) do |language|
|
|
@browser = browser(test_name(@scenario), {language: language})
|
|
$session_id = @browser.driver.instance_variable_get(:@bridge).session_id
|
|
end
|
|
|
|
When(/^I am at the preferences page$/) do
|
|
visit PreferencesPage
|
|
end
|
|
|
|
Then(/^link to the main page has text (.+)$/) do |text|
|
|
on(MainPage).main_page_element.text.should == text
|
|
end
|