Skip to content

Instantly share code, notes, and snippets.

@knorrium
Created December 11, 2013 18:38
Show Gist options
  • Save knorrium/7915988 to your computer and use it in GitHub Desktop.
Save knorrium/7915988 to your computer and use it in GitHub Desktop.
ios-driver ruby example
require "selenium-webdriver"
require "pry-nav"
def desired_caps
{
'version' => '7.0',
'device' => 'iphone',
'language' => 'en',
'CFBundleName' => 'Safari',
}
end
@driver = Selenium::WebDriver.for(
:remote,
url: "http://localhost:5555/wd/hub",
desired_capabilities: desired_caps
)
binding.pry
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment