I'm not very familiar with mobile testing at this point. If the platform has access to a webdriver or a selenium server, then watir will work with it. If it needs something more specialized (like appium library), then Watir will not work.
I've contemplated making a library for using Watir API syntax to work with Appium, but I'm not sure the demand for it. Titus On Fri, Dec 16, 2016 at 11:38 AM, Ambighananthan Ragavan < [email protected]> wrote: > @Titus > https://github.com/appium/ruby_lib is only for native apps if I am > correct. > So currently for MOBILE WEB, there is no way to run my ruby + watir > automation on simulators or real devices? > > > On Tuesday, November 22, 2016 at 10:10:36 PM UTC, Titus Fortner wrote: >> >> Watir does not have its own solution for Mobile at this time. >> This is the code to use Ruby with Appium: https://github.com/app >> ium/ruby_lib >> >> Titus >> >> On Tuesday, November 22, 2016 at 8:15:42 AM UTC-6, mike comtrox wrote: >>> >>> 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. > > [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. > -- -- 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.
