I am trying to find elements in Android device where my xpath looks like below. I am observing that when the string has special characters as the below xpath search fails.
I am using the method .findElement(By.xpath()) of base driver. Could you please let me know how this issue can be fixed?
info: [debug] [BOOTSTRAP] [debug] Got data from client: {“cmd”:“action”,“action”:“find”,“params”:{“strategy”:“xpath”,“selector”:".//class=‘android.support.v7.widget.RecyclerView’ and contains(@resource-id,‘com.amazon.tahoe:id/favorites_recycler_view’)]/android.widget.FrameLayout/android.widget.LinearLayout/[content-desc=‘Dad’s Birthday Breakfast / Dad’s Resturant Birthday’]",“context”:"",“multiple”:false}}
Here are the versions I am using locally
Appium – 1.4.10
Thanks
Sindhura