Selenium Java - Page Object Model
Examine the following Page Object class:
What is the issue with this code?
public class HomePage {
@FindBy(xpath = "//button[@id='logout']")
WebElement logoutButton;
public HomePage(WebDriver driver) {
PageFactory.initElements(this, driver);
}
}What is the issue with this code?
