I’m writing tests for ios native app using appium and jasmine. There is this screen on the app where there are two forms. One for shipping address and one for billing address. The accessibility IDs of the text fields are the same. For shipping address part I’m using $("~firstNameTextField).setValue(“abc”) and it works fine. But for billing address I’m using chain selectors to not get it confused with the shipping address’ firstNameTextField. Like this:
$("~BillingAddress").$("~firstNameTextField).setValue(“abc”);
The thing is it takes so much time to setValue for the billing address. By the time it gets to the last name part it is giving me a timeout error. How can I achieve this without timing out?