iframes[0].content_document in with selenium_driverless.sync? #78
-
Is there any way to interact with an iframe with selenium_driverless.sync? There seems to be no function Code:
Error: |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
Uh that's interesting. I'll give it a try. Technically, the syncification should handle that automatically👀 |
Beta Was this translation helpful? Give feedback.
-
@kaliiiiiiiiii Yeah that's what I assumed at first too.. Also is there any way to wait for an element to appear? Or can I just do timeout = ...? |
Beta Was this translation helpful? Give feedback.
-
Tested with: from selenium_driverless.sync import webdriver
from selenium_driverless.types.by import By
options = webdriver.ChromeOptions()
with webdriver.Chrome(options=options) as driver:
driver.get('https://www.w3schools.com/tags/tryit.asp?filename=tryhtml_iframe', wait_load=False)
iframe = driver.find_element(By.TAG_NAME, "iframe", timeout=10)
document = iframe.content_document
driver.quit(clean_dirs=True) Now and seems to be fixed => yanking current version and releasing a patch now. |
Beta Was this translation helpful? Give feedback.
Yep, don't like to release versions which break previous stuff:/
https://pypi.org/project/selenium-driverless/1.6.1/ Released now btw