Pass found elements to the EventListener's afterFind method
Instead of passing null, pass found element(s) to the afterFindElement(s) method.
@@ -192,7 +192,7 @@ public String getTitle() {
public WebElement findElement(By by) {
dispatcher.beforeFindBy(by, null, driver);
WebElement temp = driver.findElement(by);
- dispatcher.afterFindBy(by, null, driver);
+ dispatcher.afterFindBy(by, temp, driver);
return createWebElement(temp);
}
