I created selenium web driver project with maven. I read somewhere we need to add guava dependency.
Can anybody why we need guava dependency with selenium?
This is the best information I can arrange.
Summarize Answer:
Selenium uses Guava libraries for
Function and Predicates
.
Reference for above quote (Page-126) :
Brief about Function and Predicates with example used in Selenium:
Guava provides two basic "functional" interfaces:
Example:
public WebElement apply(WebDriver driver) {
return driver.findElement(locator);
}
here you can also check. Mainly used in Selenium Waits (except implicit).
Example:
selenium filter with Predicate
here you can find details of Function and Predicates
on Guava
official Documentation
I hope it will help you.