Extra space problem while using 'Accessibility id' strategy to locate element in iOS

145 views
Skip to first unread message

Kumar Pratyush

unread,
Sep 3, 2014, 6:53:46 AM9/3/14
to appium-...@googlegroups.com

So I came across this situation where the accessibility id of the element has leading/trailing spaces. To be precise :
Element recorded by appium --

wd.findElement(By.name("time   ")).click();

or this one :

wd.findElement(By.name("     duration")).click();

Is there any way that I can do a contains and not worry about the extra spaces? Something like an '@contains' feature of xpath?

Thank you.

Reply all
Reply to author
Forward
0 new messages