Hi I am using Page Factory to keep all my locator in a class .
@FindBy(xpath="//select[@ng-model='selectedLeadSource']")
WebElement source_of_lead;
public Select getSourceOptions() {
return new Select(source_of_lead);
}
But I am not able to use wait as its throwing me an error.
wait.until(ExpectedConditions.elementToBeClickable(onPage.getSourceOptions().selectByValue("Campaign")));
Error :
The method elementToBeClickable(By) in the type ExpectedConditions is not applicable for the arguments (void)