Farooq - I have had a number of challenges getting iOS VMs to launch and be stable on Sauce Labs with Watir-Webdriver.
I've found that using the `net-http-persistent` gem is helpful with this, sometimes (but not all the time). I use the following in my `.pryrc` to launch an iOS browser from the console. def sauce_iphone_browser require 'watir-webdriver' require 'selenium/webdriver/remote/http/persistent' client = Selenium::WebDriver::Remote::Http::Persistent.new client.timeout = 300 # iPhone capabilities (using the guide in Sauce's Platforms Configurator) # https://docs.saucelabs.com/reference/platforms-configurator/#/ caps = Selenium::WebDriver::Remote::Capabilities.iphone caps['platform'] = 'OS X 10.10' caps['version'] = '9.0' caps['deviceOrientation'] = 'portrait' caps['deviceName'] = "iPhone Simulator" # Sauce Labs settings caps['idleTimeout'] = 300 caps['commandTimeout'] = 300 caps['name'] = "pry #{DateTime.now.to_s}" @browser = Watir::Browser.new( :remote, :desired_capabilities => caps, :url => "http://#{ENV['SAUCE_USERNAME']}:#{ENV['SAUCE_ACCESS_KEY']}@ondemand.saucelabs.com:80/wd/hub", :http_client => client ) end On Tuesday, October 13, 2015 at 2:25:04 PM UTC-5, Farooq wrote: > > I've got Appium to work locally to execute Watir/Cuke tests on an iOS > simulator via Appium, but not yet on SL. > > On Thursday, October 1, 2015 at 10:26:05 AM UTC-4, Dan wrote: >> >> If you're not testing a native app you don't need appium, so maybe that >> will simplify your search? >> >> On Monday, September 28, 2015 at 4:01:35 PM UTC-4, Farooq wrote: >>> >>> For more clarification and recommendations, I'm looking for the best way >>> to test the a mobile web app, NOT looking to test a native app. >>> >>> On Monday, September 28, 2015 at 3:53:18 PM UTC-4, Farooq wrote: >>>> >>>> Has anyone successfully gotten this config to >>>> work: Watir+Webdriver/Cucumber + Appium on Sauce Labs? >>>> >>>> Haven't found much online... >>>> >>> -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. [email protected] http://groups.google.com/group/watir-general [email protected] --- You received this message because you are subscribed to the Google Groups "Watir General" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
