I have selenium scripts developed in WIN OS locally, later merged in GIT. Now when I am integrating them with Jenkins which is in Linux, always scripts are failing sayig could not open browser.Please find below message from jenkins.
Unable to initialize logging. Exiting...
Jul 13, 2018 4:36:01 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: OSS
[ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 61.003 s <<< FAILURE! - in TestSuite
[ERROR] Autospec(com.Jenkins_test.Simple_class) Time elapsed: 60.569 s <<< FAILURE!
org.openqa.selenium.NoSuchSessionException:
no such session
(Driver info: chromedriver=2.40.565383 (76257d1ab79276b2d53ee976b2c3e3b9f335cde7),platform=Linux 4.4.0-1062-aws x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 16 milliseconds
Build info: version: '3.0.1', revision: '1969d75', time: '2016-10-18 09:49:13 -0700'
System info: host: 'ip-172-31-72-8', ip: '172.31.72.8', os.name: 'Linux', os.arch: 'amd64', os.version: '4.4.0-1062-aws', java.version: '1.8.0_171'
Driver info: org.openqa.selenium.chrome.ChromeDriver
Capabilities [{message=unknown error: DevToolsActivePort file doesn't exist
(Driver info: chromedriver=2.40.565383 (76257d1ab79276b2d53ee976b2c3e3b9f335cde7),platform=Linux 4.4.0-1062-aws x86_64), platform=ANY}]
Please help me in resolving this issue.