Last active
August 29, 2015 14:12
-
-
Save Ricardonacif/e5f07b1cc0747228550d to your computer and use it in GitHub Desktop.
Appium Bug
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
require 'selenium-webdriver' | |
require 'pry' | |
capabilities = { | |
:deviceName => 'iPhone 5s', | |
:browserName => 'Safari', | |
:platformVersion => '8.1', | |
:platformName => 'iOS', | |
:newCommandTimeout => 9999, | |
:app => 'safari', | |
acceptSslCerts: 'true', | |
trustAllSSLCertificates: true, | |
:safariIgnoreFraudWarning => true, | |
autoAcceptAlerts: true | |
} | |
server_url = "http://127.0.0.1:4723/wd/hub" | |
browser = Selenium::WebDriver.for(:remote, :desired_capabilities => capabilities, :url => server_url) | |
browser.navigate.to('http://westelm.com') | |
100.times do | |
puts browser.execute_script ('return document.readyState') | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment