profile
viewpoint

Ask questionsCant read DOM properties

System

  • Version: geckodriver-v0.18.0-win64
  • Platform: Windows 7
  • Firefox: 55.0.3 (64-bit)
  • Selenium: python, selenium==3.5.0

Testcase

from selenium import webdriver

driver = webdriver.Firefox() driver.get('https://www.google.ba')

search = WebDriverWait(driver, 30).until( EC.element_to_be_clickable( (By.ID, 'lst-ib') ) )

Eg. properties

working property

print(search.get_property('baseURI'))

not working properties

print(search.get_property('parentElement')) print(search.get_property('parentNode')) print(search.get_property('childNodes'))

and many more...

Stacktrace

Properties return empty dictionaries instead of selenium webdriver element.

mozilla/geckodriver

Answer questions AlexandreBonneau

@whimboo I'm sorry but I won't be able to test that for the next few weeks. I'll check back here if in the mean time you haven't tried the reproducible test case I mentioned on may 12.

useful!

Related questions

Robot framework issue: Unable to find a matching set of capabilities hot 4
InvalidOperationException: Failed to start browser C:Program FilesMozilla Firefox irefox.exe: other os error (SessionNotCreated) hot 2
Marionette WARN Timed Promise timed out after 500 ms: stacktrace hot 2
Unable to create new session using a custom profile hot 1
Geckodriver with Firefox 68.0ESR Many (about 119080 ) [Parent][MessageChannel] error and CPU high usage hot 1
Failed to decode response from marionette when trying to getWindowHandles hot 1
Error: Channel error: cannot send/recv hot 1
NoSuchWindowException: Browsing context has been discarded // running multiple Firefox instances hot 1
geckodriver does not run on macOS Catalina hot 1
org.openqa.selenium.WebDriverException: Socket timeout reading Marionette handshake data: Resource temporarily unavailable (os error 11) hot 1
NoSuchWindowException: Browsing context has been discarded // running multiple Firefox instances hot 1
Unable to get Python 3, Selenium and gecko driver to work on Ubuntu 18.04 server hot 1
Session terminates after timout due to Polling for changes failed on dummy blocklist hot 1
geckodriver does not run on macOS Catalina hot 1
org.openqa.selenium.WebDriverException: Socket timeout reading Marionette handshake data: Resource temporarily unavailable (os error 11) hot 1
source:https://uonfu.com/
Github User Rank List