browsingContext.locateNodes does not accept document as a start node for a11y locator
Categories
(Remote Protocol :: WebDriver BiDi, defect, P2)
Tracking
(firefox127 fixed)
| Tracking | Status | |
|---|---|---|
| firefox127 | --- | fixed |
People
(Reporter: alexrudenko, Assigned: Sasha)
References
(Blocks 2 open bugs)
Details
(Whiteboard: [webdriver:m11])
Attachments
(1 external file, 1 obsolete file)
When a document Node is given as a start node to locateNodes using a11y attributes the following exception happens in Firefox:
{"id":23,"method":"browsingContext.locateNodes","params":{"context":"97facb40-923b-44c3-84ff-0acad846b0e4","locator":{"type":"accessibility","value":{"role":"heading"}},"startNodes":[{"type":"node","handle":"234bf83b-7ab5-458b-8c07-24400ed8d9c7","sharedId":"88005127-e365-4624-9ae5-dcc481d661cd","value":{"nodeType":9,"childNodeCount":1}}]}}
ProtocolError: Protocol error (browsingContext.locateNodes): unknown error TypeError: can't access property "getState", documentAccessible is null waitForDocumentAccessibility@chrome://remote/content/shared/webdriver/Accessibility.sys.mjs:103:3
accessibility.getAccessible@chrome://remote/content/shared/webdriver/Accessibility.sys.mjs:139:9
accessibility.getComputedRole@chrome://remote/content/shared/webdriver/Accessibility.sys.mjs:192:42
#collectNodesUsingAccessibilityAttributes@chrome://remote/content/webdriver-bidi/modules/windowglobal/browsingContext.sys.mjs:72:47
#locateNodesUsingAccessibilityAttributes@chrome://remote/content/webdriver-bidi/modules/windowglobal/browsingContext.sys.mjs:162:58
_locateNodes@chrome://remote/content/webdriver-bidi/modules/windowglobal/browsingContext.sys.mjs:537:76
handleCommand@chrome://remote/content/shared/messagehandler/MessageHandler.sys.mjs:255:33
receiveMessage@chrome://remote/content/shared/messagehandler/transports/js-window-actors/MessageHandlerFrameChild.sys.mjs:78:37
| Reporter | ||
Comment 1•2 years ago
|
||
The test in Puppeteer is "AriaQueryHandler parseAriaSelector should find button".
Example failure is https://github.com/puppeteer/puppeteer/actions/runs/8815323613/job/24197052210?pr=12315#step:10:566
Updated•2 years ago
|
| Assignee | ||
Updated•2 years ago
|
Comment 2•2 years ago
|
||
There is also the following BiDi issue: https://github.com/w3c/webdriver-bidi/issues/703
| Assignee | ||
Updated•2 years ago
|
Updated•2 years ago
|
| Assignee | ||
Comment 3•2 years ago
|
||
| Assignee | ||
Comment 4•2 years ago
|
||
Updated•2 years ago
|
Comment 6•2 years ago
|
||
| bugherder | ||
Description
•