Looks like now we heavily rely on css class and xpath to locate elements on page. A bit worry in turns of performance and maintenance. But I don't know if there is a better way to address this @djansen-redhat . For this specific method, I will suggest extract the By.xpath(".//ul[@class='autocomplete__results']/li") object to either an instance field or local variable or even a field in BasePage/AbstractPage if this is common for all search auto complete. Or extract the whole search auto complete as a static method in WebElementUtil.