September 26, 2020
· 4 min read
I guess all of you who have worked on UI testing know the "locator" problem. In order to find an
element in the DOM you need to provide a locator and usually it's an XPath string. Sometimes that
xpath can be quite nontrivial and in one day developers change the code and your locator cannot
find the required element. In order to avoid such situations as much as possible my colleagues
Peter Savage, Ronny Pfannschmidt and Karel Hala have developed a specification for frontend
developers Open Web UI Design Specification for Enabling Automation (OUIA). If your application
complies with OUIA it will have predictable locators and the behavior. This significantly simplifies
writing automated tests.