Skip to content
Sign upLog in
← Back to Community
My remote connection work fine on Repl but don't work in my laptop !
Profile icon
HamzaBakkali

from selenium import webdriver

capabilities = {
"browserName": "chrome",
"version": "81.0",
"enableVNC": True,
"enableVideo": True
}

driver = webdriver.Remote(
command_executor="http://myip:4444/wd/hub",
desired_capabilities=capabilities)

print('done')
driver.get("http://www.google.com")
print('done')

Here my small script trying to connect to selenoid droplet (digital ocean)
When i run the script in Repl it works fine but when i run on my laptop i got error connection timeout
Please help !

Voters
Profile icon
HamzaBakkali