Selenium grid

89 views
Skip to first unread message

kavi

unread,
Dec 19, 2021, 10:48:50 PM12/19/21
to Selenium Users
While Running the automation script in Docker selenium gird it's showing  the below issue

org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Response code 500. Message: Could not start a new session. Could not start a new session. Timed out waiting for driver server to shutdown.
Build info: version: '4.1.0', revision: '87802e897b'
System info: host: '813fdc3658fa', ip: '172.23.180.150', os.name: 'Linux', os.arch: 'amd64', os.version: '4.19.27-linuxkit', java.version: '11.0.11'
Driver info: driver.version: unknown
Build info: version: '4.1.0', revision: '87802e897b'
System info: host: '813fdc3658fa', ip: '172.23.180.150', os.name: 'Linux', os.arch: 'amd64', os.version: '4.19.27-linuxkit', java.version: '11.0.11'
Driver info: driver.version: unknown
Build info: version: '4.1.0', revision: '87802e897b'
System info: host: 'ff91e36f0b77', ip: '172.23.178.249', os.name: 'Linux', os.arch: 'amd64', os.version: '4.19.27-linuxkit', java.version: '11.0.11'
Driver info: driver.version: unknown
Build info: version: '4.0.0', revision: '3a21814679'
System info: host: 'LENOVO', ip: '172.17.240.1', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_301'
Driver info: org.openqa.selenium.remote.RemoteWebDriver
Command: [null, newSession {capabilities=[Capabilities {browserName: chrome, platformName: linux}], desiredCapabilities=Capabilities {browserName: chrome, platformName: LINUX}}]
Capabilities {}

Does anyone know how to resolve this issue. Please help me with this issue. 

 DesiredCapabilities dr1 =new DesiredCapabilities();
                        dr1.setCapability("browserName", browser);
//                        dr1.setBrowserName(BrowserType.CHROME);
                        dr1.setCapability("platformName", Platform.LINUX);
                        System.out.println(gridurl);
                        DriverManager.setDriver(new RemoteWebDriver(new URL(ConfigUtil.getpropertyvalue("GRIDURL")), dr1));
                        System.out.println(browser);
                        System.out.println(ConfigUtil.getpropertyvalue("GRIDURL"));

Sambhav Dave

unread,
Jan 11, 2022, 12:55:35 AM1/11/22
to Selenium Users
Hi , I saw your code and could see that in the config.properties file, the EXECUTION=grid is commented out. Maybe, that is why you are facing the issue ? Please confirm.

Sambhav Dave

unread,
Jan 11, 2022, 12:55:44 AM1/11/22
to Selenium Users

Hey ! I confirmed from my end. Please uncomment the above property in your config.properties. You will see the tests running in the grid.

Few suggestions I'd like to give :

  1. Remove typos from your project (Keep the naming conventions also apt)
  2. Maintain an understandable folder structure.
  3. Give deployment/execute instructions in README. It is a good practice and highly appreciable from the community.
  4. You can still clean your docker-compose file by keeping names and parameters simple and straight. Research more on this.
On Monday, 20 December 2021 at 09:18:50 UTC+5:30 kavir...@gmail.com wrote:
Reply all
Reply to author
Forward
0 new messages