|
I'm using Appium to automate testing of iOS native app. I have everything setup and run the test using Java. However, I'm running into some issue with trying to input textfield values. I'm accessing the textfield elements using accessibility labels (By.name) and setting the values as below -
Below is the screenshot once the values have been set. You will notice that the placeholder text for the text fields is still there behind and the password value is not secure. But the real issue is that the login fails http://i.imgur.com/WMnoNgK.png Now, if I change my code and access element using tag names, I don't see any placeholder texts, password value is secure and I can login.
My question is that - I want to use accessibility labels (By.name) and not sure how to get it to work correctly. Thanks. |
--
http://appium.io
---
You received this message because you are subscribed to the Google Groups "Appium-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to appium-discus...@googlegroups.com.
Visit this group at http://groups.google.com/group/appium-discuss.
For more options, visit https://groups.google.com/d/optout.
Ah, so the issue is that the table cell that contains the textfield also has the same accessibility label. But I'm not sure what the work around is in the java code. What I did try is assign a accessibility label to the table cell (emailTableCell) and then do the following -
driver.findElement(By.name("emailTableCell")).findElement(By.name("emailTextField")).sendKeys("myusername");
That seems to work. But not if there is a better way around. Thanks.