Session ID is null. Using WebDriver after calling quit()?

I am getting the below error only while executing the test case via test suite.

The first testcase passed where as the second and third failed stating the below error.

Attached screenshot for reference

Session ID is null. Using WebDriver after calling quit()?
Build info: version: ‘3.7.1’, revision: ‘8a0099a’, time: ‘2017-11-06T21:07:36.161Z’
System info: host: ‘XXXXXXXXX’, ip: ‘123.46.789.1’, os.name: ‘Windows 10’, os.arch: ‘amd64’, os.version: ‘10.0’, java.version: ‘1.8.0_102’
Driver info: driver.version: RemoteWebDriver

Null.jpg

1 Like

After making changes to customkeyword my problem is resolved.

Null_2.jpg

Could you please tell what is the change you have done in order to fix it?.. I am also facing the same issue

1 Like

Earlier, in my keyword I was declaring my driver as below

public static WebDriver driver = DriverFactory.getWebDriver(); Which was causing the issue.

Later I made the below changes

public static WebDriver driver;

@Keyword
public void portCodesFCL () {

	driver = DriverFactory.getWebDriver();
           // BLA BLA BLA

}

1 Like