WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
275438
[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
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2024-06-20 07:34:14 PDT
<
rdar://problem/130204783
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug