June 20, 2013 11:56 AM
In order to identify elements on screen for automation can Accessibility identifier i.e. Content Description be used.Can someone provide a Java example of how to use this . Much appreciated.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/groups/opt_out.
how this password field can be accessed in automation script written in Java once content description is set.
//These don't work
driver.findElement(By.xpath("//text[text()='Kabam Rewards']")).click();
driver.findElement(By.xpath("//text[@text='Kabam Rewards']")).click()
//but this does
driver.findElement(By.xpath("//list[1]/linear[1]/relative[1]/text[1]")).click();
TextView
<item>
It does display it for:<menu>
ImageButton
ImageView
driver.findElement(By.xpath("//text[text()='Kabam Rewards']")).click();
I will need to try something like the findElements call I described in an earlier post to this threaddriver.findElement(By.xpath("//text[@text='Kabam Rewards']")).click();
String contentDesc = element.getAttribute("content-desc");
It would be great if any one can help me in this.