[Webkit-unassigned] [Bug 209233] New: WebDriver Input clear/value commands fails when target is inside shadow dom

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Mar 18 08:16:46 PDT 2020


https://bugs.webkit.org/show_bug.cgi?id=209233

            Bug ID: 209233
           Summary: WebDriver Input clear/value commands fails when target
                    is inside shadow dom
           Product: WebKit
           Version: Safari 13
          Hardware: Unspecified
                OS: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebDriver
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: me at bnaya.net
                CC: bburg at apple.com

Created attachment 393856

  --> https://bugs.webkit.org/attachment.cgi?id=393856&action=review

Failing selenium webdriver code

When sending input commands to input element inside shadow dom,
The commands fails with
"WebDriverError: An unknown error occurred: A JavaScript exception occured: Argument 1 ('element') to Window.getComputedStyle must be an instance of Element"


A repro snippet is attached.
you will need to install https://www.npmjs.com/package/selenium-webdriver package.

The snippet tested to work works in chrome, firefox

Debugging into the node code, the commands `/{element-id}/clear`, `/{element-id}/value` returning that error from the safari side


these errors happens with Safari 12 & 13

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200318/7a8f38e0/attachment.htm>


More information about the webkit-unassigned mailing list