Ask questionsCant read DOM properties
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') ) )
print(search.get_property('baseURI'))
print(search.get_property('parentElement')) print(search.get_property('parentNode')) print(search.get_property('childNodes'))
Properties return empty dictionaries instead of selenium webdriver element.
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.
Related questions