Forum Discussion

ORA's avatar
ORA
New Contributor
3 years ago
Solved

org.openqa.selenium.SessionNotCreatedException: Could not start a new session

I'm trying to execute a groovy script on readyAPI pro, to start a selenium test :

I'm referring to the steps on https://support.smartbear.com/readyapi/docs/integrations/selenium/index.html

import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.chrome.ChromeDriver
import org.openqa.selenium.WebElement;
import org.openqa.selenium.WebDriver
import org.openqa.selenium.By;

System.setProperty("webdriver.chrome.driver", "C:/Program Files/SmartBear/ReadyAPI-3.10.1/bin/Drivers/chromedriver.exe");
log.info(System.getProperty('webdriver.chrome.driver'))

WebDriver driver = new ChromeDriver()

// Navigate to the ReadyAPI documentation
driver.get("https://www.google.be")
// Close the browser
driver.quit();

 

Then I get this error:

org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure. Build info: version: '4.0.0', revision: '3a21814679' System info: host: 'WDL0000036', ip: '10.153.227.214', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '16.0.1' Driver info: org.openqa.selenium.chrome.ChromeDriver Command: [null, newSession {capabilities=[Capabilities {browserName: chrome, goog:chromeOptions: {args: [], extensions: []}}], desiredCapabilities=Capabilities {browserName: chrome, goog:chromeOptions: {args: [], extensions: []}}}] error at line: 10

 

Any help is welcome!

Kind regards

Rb

  • Hi ORA and lavnyaup I checked with the dev team, unfortunately, this new version of Selenium seems to be incompatible with ReadyAPI. The dev team is looking into how this can be solved.

3 Replies