NEW275438
[WebDriver] WebAutomationSession platformSimulate methods for keyboard, mouse and scroll should be able to notify early failures
https://bugs.webkit.org/show_bug.cgi?id=275438
Summary [WebDriver] WebAutomationSession platformSimulate methods for keyboard, mouse...
Lauro Moura
Reported 2024-06-13 07:33:14 PDT
In the new WPE API, we hit an issue where a `element_send_keys` WebDriver command failed before sending the native event. While this should have caused the WebDriver command to fail immediately, it resulted in a timeout, making it harder to debug the issue. This happened because the platform-specific method `WebAutomationSession::platformSimulateKeySequence` does not have a way to notify its caller, `WebAutomationSession::performKeyboardInteraction`, of failure to submit the event. And the letter calls the WebDriver command callback indirectly, after processing the emitted events. These `platformSimulate` methods should be able to notify early failures properly. The touch variant already does this by forwarding the completionHandler to the platformMethod.
Attachments
Radar WebKit Bug Importer
Comment 1 2024-06-20 07:34:14 PDT
Note You need to log in before you can comment on or make changes to this bug.