Package com.privalia.qa.utils
Class ElementCountByMethod
- java.lang.Object
-
- com.privalia.qa.utils.ElementCountByMethod
-
- All Implemented Interfaces:
com.google.common.base.Function<org.openqa.selenium.WebDriver,List<org.openqa.selenium.WebElement>>
,Function<org.openqa.selenium.WebDriver,List<org.openqa.selenium.WebElement>>
,org.openqa.selenium.support.ui.ExpectedCondition<List<org.openqa.selenium.WebElement>>
public class ElementCountByMethod extends Object implements org.openqa.selenium.support.ui.ExpectedCondition<List<org.openqa.selenium.WebElement>>
Custom ExpectedCondition to evaluate if the amount of web elements in a page match the expected count. This class is to be used with FluentWait (i.e. wait.until(new ElementCountByMethod(..)))- Author:
- Jose Fernandez
-
-
Constructor Summary
Constructors Constructor Description ElementCountByMethod(String method, String element, Integer expectedCount)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<org.openqa.selenium.WebElement>
apply(org.openqa.selenium.WebDriver input)
-