Bug 275438
| Summary: | [WebDriver] WebAutomationSession platformSimulate methods for keyboard, mouse and scroll should be able to notify early failures | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Lauro Moura <lmoura> |
| Component: | WebDriver | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | bburg, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Lauro Moura
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
<rdar://problem/130204783>