How to write XPath when the value starts with an apostrophe

Handling Apostrophes in XPath Queries

11 May 2026 Stephan Petzl Leave a comment QA

If you want to reduce the time spent hand-crafting fragile locators, Repeato can help by letting you record and maintain UI tests quickly without writing much code. Because it uses computer vision and AI, it can be a practical option when XPath quoting or locator maintenance becomes a recurring pain point in iOS, Android, or web test automation.

Like this article? there’s more where that came from!