O'Reilly logo

Mobile Test Automation with Appium by Nishant Verma

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Refactor -1

Let's recall the HomePageSteps class and the iLaunchQuikrApp() method:

@When("^I launch Quikr app$") public void iLaunchQuikrApp() throws Throwable {     DesiredCapabilities capabilities = new DesiredCapabilities();     capabilities.setCapability("platformName", "Android");     capabilities.setCapability("platformVersion", "5.1");     capabilities.setCapability("deviceName", "Nexus");     capabilities.setCapability("noReset", false);     capabilities.setCapability("fullReset", true);     capabilities.setCapability("app", "/Users/nishant/Development/HelloAppium/app/quikr.apk");      appiumDriver = new AppiumDriver(new URL("http://0.0.0.0:4723/wd/hub"), capabilities);     appiumDriver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS); }

Now, the instance ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required