Closed kaliiiiiiiiii closed 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())
fixed with selenium-driverless==1.6.2
selenium-driverless==1.6.2