Quantcast
Channel: Active questions tagged selenium - Stack Overflow
Viewing all articles
Browse latest Browse all 98754

SessionNotCreatedException: Message: Could not start a new session. Response code 500 error with Python Selenium Chrome In Docker

$
0
0

I installed selenium/standalone-chrome in docker, and the version is 4.1.2. But when I run my python code get bellow error:

enter image description here

My selenium/standalone-chrome in docker:

enter image description here

My python code:

def demo():    options = Options()    options.add_argument('--headless')    options.add_argument('--disable-gpu')    driver = webdriver.Remote(        command_executor="http://localhost:4444/wd/hub",        desired_capabilities=DesiredCapabilities.CHROME    )    driver.get("https://www.google.com/")    print(driver.current_url)    driver.quit()

Could anyone give me a favor on this issue? Thanks.


Viewing all articles
Browse latest Browse all 98754

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>