kaliiiiiiiiii / Selenium-Driverless

undetected Selenium without usage of chromedriver
https://kaliiiiiiiiii.github.io/Selenium-Driverless/
Other
545 stars 66 forks source link

[BUG] : `StaleElementReferenceException` when tab gets loaded without driverless #81

Closed kaliiiiiiiiii closed 1 year ago

kaliiiiiiiiii commented 1 year ago
import asyncio

from selenium_driverless import webdriver

async def main():
    options = webdriver.ChromeOptions()
    async with webdriver.Chrome(options=options) as driver:
        await driver.execute_script('window.open("https://wikipedia.org", "_self")')
        ua = await driver.execute_script("return navigator.userAgent")
        print(ua)

asyncio.run(main())
kaliiiiiiiiii commented 1 year ago

fixed with selenium-driverless==1.6.2