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.