When the java tools convert the code using the PO method, not all the locators are stored into variables and so we got code duplication and some problems with the maintenance.
ie:
By elem = By.id("customers-tab");
MyUtils.WaitForElementLoaded(driver, elem);
driver.findElement(By.id("customers-tab")).click();
When the java tools convert the code using the PO method, not all the locators are stored into variables and so we got code duplication and some problems with the maintenance.
ie: