List<WebElement> btnlogoutprofilelist = PageFactory.getInstance().getU4FLoginPage().getBtnlogoutprofilelist();
System.out.println(btnlogoutprofilelist.size());
Above method I am using to check element visibility. but it is taking more time to get list of element. nearly it is one min to get List of element.
I tried isDisplayed()
but that element not present in the DOM due to that it is returning nosuchelement
exception. isDisplayed
method not returning boolean value. Please guide me to check element visibility in Selenium Java