Closed
Description
Do I have the most recent component updates?
- I use the most recent available driver/plugin and server versions
Is the component officially supported by the Appium team?
- I have verified the component repository is present under the Appium organization in GitHub
Is there an existing issue for this?
- I have searched the existing issues
Current Behavior
This issue is related to https://github.com/appium/java-client/blob/master/docs/The-event_firing.md .
The proxy method is not able to intercept click action, only driver based methods are intercepted
Expected Behavior
Please provide a fix or documentation on how to intercept webelement method calls
Minimal Reproducible Example
MethodCallListener listener = new MethodCallListener() {
@Override
public void beforeCall(Object target, Method method, Object[] args) {
if (method.getName().equals("execute")) {
System.out.println(args[0].tostring());
}
};
IOSDriver decoratedDriver = createProxy(
IOSDriver.class,
new Object[] {new URL("http://localhost:4723/"), capabilities},
new Class[] {URL.class, Capabilities.class},
listener
);
decoratedDriver.findElement(Appium.id("id")).click();
Environment
- Operating system:
- Appium server version (output of
appium --version
): - Appium driver(s) and their version(s) (
appium driver list
): - Appium plugin(s) and their version(s) (
appium plugin list
): - Node.js version (output of
node --version
): npm
version (output ofnpm --version
):- Last component(s) version which did not exhibit the problem:
- Platform and version under test:
- Real device or emulator/simulator:
Link to Appium Logs
No response
Further Information
No response
Metadata
Metadata
Assignees
Labels
No labels