Open TimoVFX opened 3 years ago
Hello, This error occurs when the specified browser version is not available on the grid. Could you please double check the version you specified is available? It should be seen at http://your_url:4444/grid/console You can also not specify the version in the config file as such:
{
"browserName": "chrome",
"platform": "windows"
}
`[](url)Hello, I have similar error. off
java -Dkite.firefox.profile=/home/ethem/Documents/GitHub/KITE/third_party/firefox-h264-profiles/ -cp /home/ethem/Documents/GitHub/KITE/KITE-Engine/target/kite-jar-with-dependencies.jar:target/* org.webrtc.kite.Engine configs/search.local.config.json
WARNING: sun.reflect.Reflection.getCallerClass is not supported. This will impact performance.
2022-12-14 00:27:51,028 INFO - Reading '/home/ethem/Documents/GitHub/KITE/KITE-Example-Test/configs/search.local.config.json' ...
2022-12-14 00:27:51,052 INFO - new RoomManager(1 max per room) for null
2022-12-14 00:27:51,052 INFO - Please make sure that you have enough room for all users.
2022-12-14 00:27:51,053 INFO - getRoomUrl(random) function, with random value = true/false, will give you the base url with or without a randomized ID.
2022-12-14 00:27:51,053 INFO - Finished reading the configuration file
2022-12-14 00:27:51,053 INFO - Creating report folder if not exist at :/home/ethem/Documents/GitHub/KITE/KITE-Example-Test/kite-allure-reports/
2022-12-14 00:27:51,055 INFO - Running {"type":"interop","name":"KiteExampleSearchTest %ts","testImpl":"org.webrtc.kite.example.KiteExampleSearchTest","description":"This example test opens google and searches for Cosmo Software Consulting and verify the first result","tupleSize":1,"noOfThreads":1,"maxRetryCount":0,"delayForClosing":0,"permute":true} ...
2022-12-14 00:27:51,057 INFO - Executing {"type":"interop","name":"KiteExampleSearchTest %ts","testImpl":"org.webrtc.kite.example.KiteExampleSearchTest","description":"This example test opens google and searches for Cosmo Software Consulting and verify the first result","tupleSize":1,"noOfThreads":1,"maxRetryCount":0,"delayForClosing":0,"permute":true} for 1 browser tuples with size :1
2022-12-14 00:27:51,059 INFO - current phase in test manager has been set to DEFAULT
2022-12-14 00:27:51,061 INFO - |
-------------------------------------------------- | Number of registered tests: 0 | Elapsed time: 0m0s (avg:0m0s) | Running test case with ID: 0/1 | ETA (for KiteExampleSearchTest %ts): Estimating.. |
---|
2022-12-14 00:27:51,062 INFO - execute(DEFAULT) for the test case: LIN_ch_108 (2022-12-14-002751) 2022-12-14 00:27:51,062 INFO - Not load test, init report for test 2022-12-14 00:27:51,063 INFO - Finished filling out initial report for phase 2022-12-14 00:27:51,063 INFO - payload handling 2022-12-14 00:27:51,063 INFO - the payload is {"test1":"ONE","test2":"TWO"} 2022-12-14 00:27:51,064 INFO - Creating runners 2022-12-14 00:27:51,064 INFO - Start creating the TestRunner id 0 in 0ms 2022-12-14 00:27:51,069 INFO - unknown(no Web Driver): Creating web driver for {"app":false,"kind":"browser","logger":{"name":"org.webrtc.kite.config.client.Client","debugEnabled":true},"count":5,"clientIndex":0,"fullReset":false,"jsonConfig":{"headless":{},"browserName":{},"version":{},"platform":{}},"capability":{"headless":false,"windowSize":"1920,1200","technologyPreview":false,"useFakeMedia":true,"flags":[],"extraCapabilities":{},"maxInstances":5,"gateway":"none"},"paas":{"specList":[],"networkProfile":{"corrupt":0,"delay":0,"cleanUpCommand":"","bandwidth":0,"packetloss":0,"name":"NONE","id":"","duplicate":0,"command":""},"availableSlots":4,"type":"local","region":"NC","url":"http://localhost:4444/wd/hub"},"name":"0","networkProfile":{"corrupt":0,"delay":0,"cleanUpCommand":"","bandwidth":0,"packetloss":0,"name":"","id":"","duplicate":0,"command":""},"exclude":false,"browserSpecs":{"extension":"","profile":"","driverString":"-Dwebdriver.chrome.driver=./chromedriver","browserName":"chrome","version":"108","deviceName":"unknown","platform":"LINUX"},"region":"NC"} Dec 14, 2022 12:27:51 AM org.openqa.selenium.remote.ProtocolHandshake createSession INFO: Detected dialect: W3C 2022-12-14 00:27:51,617 INFO - unknown(no Web Driver): [PASSED] Initiate webDriver for client 2022-12-14 00:27:51,628 INFO - Starting the execution of the test runners in parallel 2022-12-14 00:27:51,629 INFO - Start processing the TestRunner(DEFAULT) id 0 in 0ms 2022-12-14 00:27:52,457 INFO - ch108_LINUX-cb453 - 0: [PASSED] Open https://google.com and look for CoSMo Software Consulting 2022-12-14 00:27:53,757 ERROR - Step failed: message = The title of the first Google result was not correct: Expected: CoSMo Software - Cosmo Software but found Software & Consulting for the Digital Transformation of Companies | COSMO CONSULT
2022-12-14 00:27:53,758 WARN - ch108_LINUX-cb453 - 0: [SKIPPING] Get the browser console logs. 2022-12-14 00:27:53,758 INFO - ch108_LINUX-cb453 - 0: [FAILED] Open first result on Google result page and verify the page title 2022-12-14 00:27:53,758 INFO - execute(DEFAULT) completed. 2022-12-14 00:27:53,758 INFO - Terminating, quiting webdriver 2022-12-14 00:27:53,758 INFO - Closing down webDrivers 2022-12-14 00:27:53,821 INFO - Test FAILED 2022-12-14 00:27:53,821 INFO - Matrix runner at last phase, ending. 2022-12-14 00:27:53,825 WARN - Adding [0] to retry list.. 2022-12-14 00:27:53,826 INFO - Reading '/home/ethem/Documents/GitHub/KITE/KITE-Example-Test/configs/search.local.config.json' ... 2022-12-14 00:27:53,826 WARN - Done! Some test cases might need to be rerun! 2022-12-14 00:27:53,827 INFO - Reading '/home/ethem/Documents/GitHub/KITE/KITE-Example-Test/configs/search.local.config.json' ... 2022-12-14 00:27:53,827 INFO - shutdownExecutors() done. ` But i have see web driver on (http://localhost:4444/grid/console)
Java Version is: openjdk 17.0.5 2022-10-18 OpenJDK Runtime Environment (build 17.0.5+8-Ubuntu-2ubuntu122.04) OpenJDK 64-Bit Server VM (build 17.0.5+8-Ubuntu-2ubuntu122.04, mixed mode, sharing)
Maven Version is: Apache Maven 3.6.3 Maven home: /usr/share/maven Java version: 17.0.5, vendor: Private Build, runtime: /usr/lib/jvm/java-17-openjdk-amd64 Default locale: en_US, platform encoding: UTF-8 OS name: "linux", version: "5.15.0-56-generic", arch: "amd64", family: "unix"
Hi, i installed KITE following the guide. I have an external Selenium Grid running, changed the url in the
search.local.config.json
like so:
When running
kite_r search.local.config.json
within theKITE-Example-Test
there are occuring two different Errors:ERROR - unknown(no Web Driver): Exception while populating webdriver: 0 org.webrtc.kite.exception.KiteGridException: WebDriverException creating webdriver for ...
andorg.openqa.selenium.WebDriverException: Error forwarding the new session cannot find : Capabilities ...
Full Logs following down below.
I did some research on this errors and its most likely something related to the version of the webdrivers. My Versions:
chromedriver -v
: 90.0.4430.24google-chrome -v
: 90.0.4430.93grid-chrome
: 90.0.4430.86I tried it on Windows within WSL, as well as on my Macbook. And i got the same result for both devices. I also tried to install and use the local grid, resulting in the same errors. Probably im missing just something minor but i can´t figure it out atm.
Console output: