-
Notifications
You must be signed in to change notification settings - Fork 129
Selenium Grid 4 ( latest) with chrome (latest) nodes #194
Description
We found the need to upgrade selenium nodes to chrome 98 and updated the all components of the grid as well, When running kite test , i get a NullPointer.
SLF4J: A number (21) of logging calls during the initialization phase have been intercepted and are
SLF4J: now being replayed. These are subject to the filtering rules of the underlying logging system.
SLF4J: See also http://www.slf4j.org/codes.html#replay
2022-02-24 15:27:25,559 ERROR - Exception while talking to the grid
java.lang.NullPointerException: Cannot invoke "javax.json.JsonString.getString()" because the return value of "org.glassfish.json.JsonObjectBuilderImpl$JsonObjectImpl.getJsonString(String)" is null
at org.glassfish.json.JsonObjectBuilderImpl$JsonObjectImpl.getString(JsonObjectBuilderImpl.java:257)
at io.cosmosoftware.kite.util.TestUtils.getNode(TestUtils.java:276)
at org.webrtc.kite.config.client.Client.addToSessionMap(Client.java:565)
at org.webrtc.kite.config.client.Client.createWebDriver(Client.java:522)
at org.webrtc.kite.tests.InitClientWebDriverStep.step(InitClientWebDriverStep.java:33)
at io.cosmosoftware.kite.steps.TestStep.execute(TestStep.java:81)
at io.cosmosoftware.kite.steps.TestStep.processTestStep(TestStep.java:329)
at org.webrtc.kite.tests.TestRunner.(TestRunner.java:73)
at org.webrtc.kite.tests.TestRunnerCreator.call(TestRunnerCreator.java:33)
at org.webrtc.kite.tests.TestRunnerCreator.call(TestRunnerCreator.java:12)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
at java.base/java.lang.Thread.run(Thread.java:831)
Docker-compose.yml
`
version: '2'
services:
chrome:
image: selenium/node-chrome:latest
shm_size: 2gb
depends_on:
- selenium-hub
environment:
- SE_EVENT_BUS_HOST=selenium-hub
- SE_EVENT_BUS_PUBLISH_PORT=4442
- SE_EVENT_BUS_SUBSCRIBE_PORT=4443
- SE_NODE_MAX_SESSIONS=10
ports:
- "6900:5900"
selenium-hub:
image: selenium/hub:latest
ports:
- "4442:4442"
- "4443:4443"
- "4444:4444"`