Closed pythondeveloperz closed 1 month ago
that error has nothing to do with selenium-driverless
that error has nothing to do with selenium-driverless
i dont mean there is a bug on the package but i mean the profile i want to automate it is version 124 and the driver connected with package is version 125
i want to know how can i handle the error and make the driver of the package 124 the same of the browser i want to automate it
this is the code i run it 👍
from selenium_driverless import webdriver import asyncio import time from sys import platform from selenium import webdriver from selenium.webdriver.chrome.options import Options from gologin import GoLogin from gologin import getRandomPort
gl = GoLogin({ "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiI2NjQ4ZmE3M2ExN2UyNGNiYmUwMzcyM2UiLCJ0eXBlIjoiZGV2Iiwiand0aWQiOiI2NjQ4ZmFjN2I5MDE4Y2Q3ODZmYWE1MzcifQ.qqKCRKqhRByrpxo88Kk1oxPJGzHVO_PScKP0EgVvODI", "profile_id": "6648faa2ba44fe9e8864d934",
})
debugger_address = gl.start()
async def main(): options = webdriver.ChromeOptions() options.debugger_address = debugger_address
async with webdriver.Chrome(options=options) as driver: await driver.get('http://nowsecure.nl#relax', wait_load=True) gl.stop()
asyncio.run(main())
and the following is the error appeared to me :
raise exception_class(message, screen, stacktrace) selenium.common.exceptions.WebDriverException: Message: unknown error: cannot connect to chrome at 127.0.0.1:3500 from session not created: This version of ChromeDriver only supports Chrome version 125 Current browser version is 124.0.6367.78`
from selenium_driverless import webdriver
import asyncio
import time
from sys import platform
from selenium import webdriver #shaddows driverless webdriver
from selenium.webdriver.chrome.options import Options
you overwrite the variable webdriver
by importing the selenium one after driverless one.
Also, you can't mix selenium & driverless in mlst cases
selenium.common.exceptions.WebDriverException: Message: unknown error: cannot connect to chrome at 127.0.0.1:3500 from session not created: This version of ChromeDriver only supports Chrome version 125 Current browser version is 124.0.6367.78
how can i handle this error how to use an older chrome version rather than the latest one please?