Skip to content

Commit b6f307c

Browse files
baflQAshs96c
authored andcommitted
Pass found elements to the EventListener's afterFind method (#6191)
Instead of passing null, pass found element(s) to the afterFindElement(s) method.
1 parent cd73301 commit b6f307c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/client/src/org/openqa/selenium/support/events/EventFiringWebDriver.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ public List<WebElement> findElements(By by) {
192192
public WebElement findElement(By by) {
193193
dispatcher.beforeFindBy(by, null, driver);
194194
WebElement temp = driver.findElement(by);
195-
dispatcher.afterFindBy(by, null, driver);
195+
dispatcher.afterFindBy(by, temp, driver);
196196
return createWebElement(temp);
197197
}
198198

0 commit comments

Comments
 (0)