I’m using and need to explicitly until particulate load. Please advise how to do that. up to now I have following..

public class HomePage {
final WebDriver driver;
WebDriverWait wait;

@FindBy(xpath = "//*[contains(@id,'ctl00_LeftPanel_LeftNavigationMenu_nbMenu_GHE')]")
List<WebElement> Navi_Elements ;

and my constructor looks like

public  HomePage(WebDriver driver){
        this.driver = driver;
        wait = new WebDriverWait(driver,45);

now I’m trying to do in my method (in home page class) is…. something like…

    public void clickNavigator(String sMyNode){
                try{ wait.until(ExpectedConditions.presenceOfAllElements(Navi_Elements));

But in ExpectedConditions class there is no method to check which accepts Element/s

But according to This question it can be done

can not use “visibilityOfAllElements” since there is no visibility attribute in element

I’m using selenium 3.11

Source link https://sqa.stackexchange.com/questions/33293/how-to-wait-presence-of-elements-in-page-factory


Please enter your comment!
Please enter your name here