Can any one let me know how and where to implement Explicit Wait in POM frameowrk?
I mean, where should i implement explicit wait code? In POM classes or in Test Case classes?
since now, i have implemented the EW code line in POM class and within the constructor body, below code
public RegistrationPage (WebDriver driver)
{
PageFactory.initElements(driver, this);
new WebDriverWait(driver, 30).until(ExpectedConditions.visibilityOf(GenderRadioButton));
}
This worked fine for me, but not 100% sure whether or not this is a correct place to implement Explicit wait, need some insight on this plz
--- Ram