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

Implementing the other steps

Let's implement the preceding scenario. The first step to launch a quicker app is already automated, so let's figure out the dependency for the following step:

  And I choose "Bangalore" as my city
  1. Tap on SKIP.
  2. Tap on Select City.
  3. Enter Bangalore in the search for your city textbox.
  4. Select the appearing value from the dropdown.

So, when you use the Inspector, you will notice that all the preceding elements have an ID, which can be easily used.

Here's the implementation for the same. We can create these methods in the HomePageSteps class file. To ensure that the click action has the element visible, we have used Thread.sleep(). We will refactor the same in a later chapter to use WebDriver wait:

 @And("^I choose ...

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