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 ...

Get Mobile Test Automation with Appium now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.