Hi
In my application, I have to get value of attribute 'content-desc' and then I have to apply assertions for this value.
I am using following
String desc = LaunchApplication.driver.findElement(By.xpath("//android.view.View[@index='5']")).getAttribute("content-desc").toString();
But this neither returns me exception. But my test fails and I didn't get value.
Can you please help me on this.