Closed ruslanx3m closed 11 months ago
Yep, thanks, I'll have a look at it
Should now be resolved with selenium-driverless>=1.2.5
example script:
import time
from selenium_driverless.sync import webdriver
options = webdriver.ChromeOptions()
with webdriver.Chrome(options=options) as driver:
driver.get("https://www.w3schools.com/html/html_iframe.asp")
iframe = None
while not iframe:
for target in driver.targets:
if target["type"] == "iframe":
if True: # filter out iframe here
iframe = target
break
time.sleep(0.1)
driver.switch_to.target(target["targetId"])
print(driver.title)
@ruslanx3m if this resolves your issue, please close it.
AttributeError: 'str' object has no attribute 'to_json'
AttributeError: 'str' object has no attribute 'to_json'
?
Hi, updated the Selenium-Driverless and now is working! thank you!
Hi, updated the Selenium-Driverless and now is working! thank you!
Switching to iframe 62F39492BC29F01259DA297E862DA9DA 'str' object has no attribute 'to_json' Error while switching to iframe