Created
November 1, 2017 10:55
-
-
Save luke-hill/b687ab96602910860b4dd78ed5ec78ea to your computer and use it in GitHub Desktop.
FF payload
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def register_remote_driver(capabilities) | |
Capybara.register_driver :selenium do |app| | |
client = Selenium::WebDriver::Remote::Http::Default.new | |
client.timeout = 120 | |
if browser == :firefox | |
Capybara::Selenium::Driver.new( | |
app, | |
browser: :remote, | |
url: ENV['hub_url'], | |
desired_capabilities: capabilities, | |
marionette: true, | |
#options: firefox_options, | |
http_client: client, | |
) | |
else | |
Capybara::Selenium::Driver.new( | |
app, | |
browser: :remote, | |
url: ENV['hub_url'], | |
desired_capabilities: capabilities, | |
http_client: client, | |
) | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment