Closed titusfortner closed 1 year ago
This is not implemented yet. See https://bugzilla.mozilla.org/show_bug.cgi?id=1700097
Is there any update on this?
Any progress with this issue ? I cannot test app that uses shadow DOM using Selenium
This is fixed in Firefox 113.
It works with Firefox 113.0.1 (64-bit) with geckodriver-v0.33.0-linux64 It doesn't work with almost any other combination of Firefox/geckodriver I've tried.
I've encountered an error using Selenium with python: shadow_host = driver.find_element(By.TAG_NAME, 'some tag') shadow_host.shadow_root.find_element(By.CSS_SELECTOR, 'some css_selector') ---> "selenium.common.exceptions.WebDriverException: Message: HTTP method not allowed"
This was the case for the current Firefox version while writing this post: 118.0.2 (64-bit); and also for 113.0.1 (64-bit)
I've tried several geckodriver versions, specifically geckodriver-v0.31.0-linux64 (title of this thread) in combination with both versions. Finally, as I wrote in the beginning of the post, I was able to interact with ShadowRoot object using Firefox 113 (current version is 118*) and the latest geckodriver (0.33.0-linux64).
@orensch2 please make sure that the right version of geckodriver is used. You can check that by the returned session capabilities as well. If that's still happening with recent Firefox and geckodriver please file a new issue with trace logs attached. Thanks.
System
Testcase
Note: Same behavior for
find_elements
https://github.com/SeleniumHQ/selenium/blob/trunk/common/src/web/webComponents.html
Stacktrace
Trace-level log