Mobile Web automation on real ios device- When safari browser getting opened through safari launcher
SafariLauncher navigates to apple.com instead of specified URL. when encountering the same issue in the Java it getting solved using the context switching like below. DesiredCapabilities capabilities = new DesiredCapabilities(); IOSDriver driver; Set contextNames=null; capabilities.setCapability("platformName", "iOS"); capabilities.setCapability("deviceName", "iPhone 6 Plus"); capabilities.setCapability("browser", "safari"); capabilities.setCapability("safariAllowPopups", false); capabilities.setCapability("safariIgnoreFraudWarning", true); String deviceUDID="1b70c7f91ea5cb1eeff649b6e41aa686ecae1d1d"; capabilities.setCapability("udid",deviceUDID); driver = new IOSDriver(new URL("http://127.0.0.1:4723/wd/hub"), capabilities); contextNames=driver.getContextHandles(); for(String contextName : contextNames){ if(contextName.contains("WEBVIEW")){ driver.context(contextName); break; } } driver.get("https://www.google.co.in"); Can any one share ,How it can be implemented using Ruby . with Watir . -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com --- 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 watir-general+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.