skip to Main Content

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

I installed selenium/standalone-chrome in docker, and the version is 4.1.2. But when I run my python code get bellow error: My selenium/standalone-chrome in docker: 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 )…

VIEW QUESTION

Run selenium with cache on centos/linux

I'm able to run selenium on non GUI centos/linux machine in headless mode. I have been trying to run it with cache enable by passing below chromeoptions arguments. chromeOptions.addArguments("user-data-dir=~/.config/google-chrome"); It has started fine and identified elements till login page(which is…

VIEW QUESTION

How to enable WebGL in Headless Chrome >= 96 within selenium-docker project to run Chrome inside a docker container without XVFB

I'm using selenium-docker project to run chrome inside a docker container, without XVFB (START_XVFB=false). I want to use webgl support. With chrome v95 and lower (https://github.com/SeleniumHQ/docker-selenium/releases/tag/4.1.0-prerelease-20211105), webgl is enabled (checking with https://get.webgl.org/). However, when using chrome v96 or later it…

VIEW QUESTION
Back To Top
Search