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
- Tap on SKIP.
- Tap on Select City.
- Enter Bangalore in the search for your city textbox.
- 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 ...