You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/The-event_firing.md
+57Lines changed: 57 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -154,3 +154,60 @@ This proxy is not tied to WebDriver descendants and could be used to any classes
154
154
change/replace the original methods behavior. It is important to know that callbacks are **not** invoked
155
155
for methods derived from the standard `Object` class, like `toString` or `equals`.
156
156
Check [unit tests](../src/test/java/io/appium/java_client/proxy/ProxyHelpersTest.java) for more examples.
157
+
158
+
#### ElementAwareWebDriverListener
159
+
160
+
A specialized MethodCallListener that listens to all method calls on a WebDriver instance and automatically wraps any returned RemoteWebElement (or list of elements) with a proxy. This enables your listener to intercept and react to method calls on both:
161
+
162
+
- The driver itself (e.g., findElement, getTitle)
163
+
164
+
- Any elements returned by the driver (e.g., click, isSelected on a WebElement)
0 commit comments