Skip to content

[🐛 Bug]: Unable to launch browser with latest version of chrome (Version 138.0.7204.169 (Official Build) (64-bit)) #16104

@sumitsg004

Description

@sumitsg004

Description

Hello team,

After chrome got upgraded to new version - Version 138.0.7204.169 (Official Build) (64-bit), unable to launch the browser with below error -

"1) Error injecting constructor, org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Response code 500. Message: session not created: DevToolsActivePort file doesn't exist"

Note: this started happening only after chrome got updated to latest version. Below are more details.

Chrome version : Version 138.0.7204.169 (Official Build) (64-bit)
Chrome driver version: Latest version available for version 138 (138.0.7204.168)

Is there any known issue with latest version of browser ? Please let me know if you need more details.

Detailed error log -

  1. [Guice/ErrorInjectingConstructor]: SessionNotCreatedException: Could not start a new session. Response code 500. Message: session not created: DevToolsActivePort file doesn't exist
    Build info: version: '4.2.2', revision: '683ccb65d6'
    System info: host: 'L48727WIN', ip: '192.168.1.4', os.name: 'Windows 11', os.arch: 'amd64', os.version: '10.0', java.version: '17.0.15'
    Driver info: ChromeDriver
    Command: [null, newSession {capabilities=[Capabilities {browserName: chrome, goog:chromeOptions: {args: [--remote-allow-origins=, --test-type, --window-position=0,0, chrome.switches, ignore-certificate-errors, --remote-allow-origins=], excludeSwitches: [enable-automation], extensions: [], prefs: {credentials_enable_service: false, download.default_directory: C:\Users\ghors3\Desktop\Qpr..., download.prompt_for_download: false, profile.default_content_settings.geolocation: 2, profile.default_content_settings.location: 2, profile.default_content_settings.popups: 2}}, goog:loggingPrefs: {browser: ALL, performance: ALL}, unhandledPromptBehavior: accept}], desiredCapabilities=Capabilities {browserName: chrome, goog:chromeOptions: {args: [--remote-allow-origins=, --test-type, --window-position=0,0, chrome.switches, ignore-certificate-errors, --remote-allow-origins=], excludeSwitches: [enable-automation], extensions: [], prefs: {credentials_enable_service: false, download.default_directory: C:\Users\ghors3\Desktop\Qpr..., download.prompt_for_download: false, profile.default_content_settings.geolocation: 2, profile.default_content_settings.location: 2, profile.default_content_settings.popups: 2}}, goog:loggingPrefs: {browser: ALL, performance: ALL}, unhandledPromptBehavior: accept}}]

Reproducible Code

Running selenium automation with latest version of chrome , running into the issue.

Debugging Logs

1) [Guice/ErrorInjectingConstructor]: SessionNotCreatedException: Could not start a new session. Response code 500. Message: session not created: DevToolsActivePort file doesn't exist
Build info: version: '4.2.2', revision: '683ccb65d6'
System info: host: 'L48727WIN', ip: '192.168.1.4', os.name: 'Windows 11', os.arch: 'amd64', os.version: '10.0', java.version: '17.0.15'    
Driver info: ChromeDriver
Command: [null, newSession {capabilities=[Capabilities {browserName: chrome, goog:chromeOptions: {args: [--remote-allow-origins=*, --test-type, --window-position=0,0, chrome.switches, ignore-certificate-errors, --remote-allow-origins=*], excludeSwitches: [enable-automation], extensions: [], prefs: {credentials_enable_service: false, download.default_directory: C:\Users\ghors3\Desktop\Qpr..., download.prompt_for_download: false, profile.default_content_settings.geolocation: 2, profile.default_content_settings.location: 2, profile.default_content_settings.popups: 2}}, goog:loggingPrefs: {browser: ALL, performance: ALL}, unhandledPromptBehavior: accept}], desiredCapabilities=Capabilities {browserName: chrome, goog:chromeOptions: {args: [--remote-allow-origins=*, --test-type, --window-position=0,0, chrome.switches, ignore-certificate-errors, --remote-allow-origins=*], excludeSwitches: [enable-automation], extensions: [], prefs: {credentials_enable_service: false, download.default_directory: C:\Users\ghors3\Desktop\Qpr..., download.prompt_for_download: false, profile.default_content_settings.geolocation: 2, profile.default_content_settings.location: 2, profile.default_content_settings.popups: 2}}, goog:loggingPrefs: {browser: ALL, performance: ALL}, unhandledPromptBehavior: accept}}]

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-needs-triagingA Selenium member will evaluate this soon!C-javaJava BindingsD-chromeI-defectSomething is not working as intendedI-questionApplied to questions. Issues should be closed and send the user to community resources.OS-windows

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions