Created
March 15, 2015 00:27
-
-
Save rstormsf/e76075840fb6d93b1640 to your computer and use it in GitHub Desktop.
Selenium
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
mobile_emulation = { "deviceName" => "Google Nexus 5" } | |
caps = Selenium::WebDriver::Remote::Capabilities.chrome( | |
"chromeOptions" => { "mobileEmulation" => mobile_emulation }) | |
@driver = Selenium::WebDriver.for :remote, url: 'http://localhost:4444/wd/hub', desired_capabilities: caps | |
@driver.navigate.to "https://www.gmail.com/" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment