[Webkit-unassigned] [Bug 202589] Unable to Click on Safari 13

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jan 6 12:14:47 PST 2020


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

--- Comment #27 from Brian Burg <bburg at apple.com> ---
(In reply to arian.ics from comment #26)
> (In reply to Jimmy Collazos from comment #21)
> > I have the same problem, but in my case is when the element is in shadow-dom
> > 
> > Idea:
> > =======
> > The element exist; but the service can't find and then execute
> > "Window.getComputedStyle" with null, undefined or similar
> > 
> > 
> > Safaridrier Version:
> > ====================
> > "included with Safari 13.0.3 (14608.3.10.10.1)"
> > 
> > 
> > Reproduce Requests:
> > ===================
> > [POST]
> > http://127.0.0.1:4444/session/08D37203-AEDD-43DF-990A-900EC182648A/element
> > -> DATA { using: 'css selector', value: 'shop-app' }
> > -> RESULT { 'element-6066-11e4-a52e-4f735466cecf':
> > 'node-D5A74127-717A-4BFB-8E13-1AE3A6D96A5C' }
> > 
> > [POST]
> > http://127.0.0.1:4444/session/08D37203-AEDD-43DF-990A-900EC182648A/execute/
> > sync
> > -> DATA { 
> >   script: 'return (function (elem) {return (function() {if (this.shadowRoot)
> > {return this.shadowRoot.querySelector(\'shop-home\')}return
> > this.querySelector(\'shop-home\')}).call(elem);}).apply(null, arguments)',  
> >   args:   [ { 'element-6066-11e4-a52e-4f735466cecf':
> > 'node-D5A74127-717A-4BFB-8E13-1AE3A6D96A5C', ELEMENT:
> > 'node-D5A74127-717A-4BFB-8E13-1AE3A6D96A5C' } ] 
> > }
> > -> RESULT { 'element-6066-11e4-a52e-4f735466cecf':
> > 'node-5D1721C6-39B1-425E-8751-2DF193491171' }
> > 
> > [POST]
> > http://127.0.0.1:4444/session/08D37203-AEDD-43DF-990A-900EC182648A/element/
> > node-5D1721C6-39B1-425E-8751-2DF193491171/click
> > ->ERROR-RESULT: A JavaScript exception occured: Argument 1 ('element') to
> > Window.getComputedStyle must be an instance of Element
> 
> I am also running into this issue calling click or clear on an element
> inside shadowdom. 
> 
> http://127.0.0.1:4444/wd/hub/session/3957A8DD-87E9-47FA-BBA1-5F3FE9AB511C/
> element/node-D45B7A71-2F93-49D6-98AD-9821E0A0BCCC/clear
> 
> Resp: Argument 1 ('element') to Window.getComputedStyle must be an instance
> of Element

Clicks cannot be targeted to innards of a Shadow DOM tree. That behavior is not spec'd, so that needs to happen first. Clicking the element itself should work. File a new bug if it doesn't.

-- 
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/20200106/007ff8f1/attachment.htm>


More information about the webkit-unassigned mailing list