I have a base page class like this
public class BasePage{
@FindBy(id = "select2-ccnl-container")
protected WebElement ccnlSelect;
public void clickSettingCcnl(){
ccnlSelect.click();
}
}
then i created 2 class Page1
and Page2
both extending BasePage
.
those are 2 different pages containing an element with that id. When i use the clickSettingCcnl()
in a test on Page1
everything is ok.
But the same thing on Page2
gave me org.openqa.selenium.ElementNotInteractableException: element not interactable
The element is visible and clickable on Page1
and so it seems on Page2
.