RESOLVED FIXED 190221
Web Automation: tab default key handler should always cycle focus when page is controlled by automation
https://bugs.webkit.org/show_bug.cgi?id=190221
Summary Web Automation: tab default key handler should always cycle focus when page i...
Blaze Burg
Reported 2018-10-02 15:20:52 PDT
.
Attachments
Patch (1.91 KB, patch)
2018-10-02 15:26 PDT, Blaze Burg
joepeck: review+
Blaze Burg
Comment 1 2018-10-02 15:21:04 PDT
Blaze Burg
Comment 2 2018-10-02 15:26:09 PDT
Joseph Pecoraro
Comment 3 2018-10-02 15:38:52 PDT
Comment on attachment 351445 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=351445&action=review r=me > Source/WebCore/ChangeLog:15 > + Always cycle focus if the page is controlled by automation. If the chrome takes > + focus, then the first responder will be something other than the WebView, which > + causes subsequent WebDriver commands to hang. Hmm, this is interesting and makes sense but doesn't that mean that the test might differ from a real user behavior on the page?
Blaze Burg
Comment 4 2018-10-02 15:50:30 PDT
(In reply to Joseph Pecoraro from comment #3) > Comment on attachment 351445 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=351445&action=review > > r=me > > > Source/WebCore/ChangeLog:15 > > + Always cycle focus if the page is controlled by automation. If the chrome takes > > + focus, then the first responder will be something other than the WebView, which > > + causes subsequent WebDriver commands to hang. > > Hmm, this is interesting and makes sense but doesn't that mean that the test > might differ from a real user behavior on the page? Yes, it does, though I don't know that wraparound is in anyway specified by a standard. There are many other differences between WebDriver and normal UA behavior, the largest being how alerts are handled.
Blaze Burg
Comment 5 2018-10-02 16:55:47 PDT
Note You need to log in before you can comment on or make changes to this bug.