Chrome crashes when it is getting initiated by chromedriver, This happens in Windows 10 with chrome packaged using App-V methodology. Below are the contents of log file.
[1546263968.808][INFO]: COMMAND InitSession {
"capabilities": {
"desiredCapabilities": {
"browserName": "chrome",
"goog:chromeOptions": {
"args": [ "test-type", "no-sandbox", "start-maximized", "--log-level=3", "disable-gpu", "disable-infobars", "disable-extensions" ],
"binary": "C:\\ProgramData\\App-V\\4AA48366-B631-45EE-82D7-E11CC9775D58\\CACA209E-92FA-47CD-A64A-CD82B64765D2\\Root\\VFS\\ProgramFilesX86\\Google\\Chrome\\Application\\chrome.exe",
"extensions": [ ],
"useAutomationExtension": false
}
},
"firstMatch": [ {
"browserName": "chrome",
"goog:chromeOptions": {
"args": [ "test-type", "no-sandbox", "start-maximized", "--log-level=3", "disable-gpu", "disable-infobars", "disable-extensions" ],
"binary": "C:\\ProgramData\\App-V\\4AA48366-B631-45EE-82D7-E11CC9775D58\\CACA209E-92FA-47CD-A64A-CD82B64765D2\\Root\\VFS\\ProgramFilesX86\\Google\\Chrome\\Application\\chrome.exe",
"extensions": [ ],
"useAutomationExtension": false
}
} ]
},
"desiredCapabilities": {
"browserName": "chrome",
"goog:chromeOptions": {
"args": [ "test-type", "no-sandbox", "start-maximized", "--log-level=3", "disable-gpu", "disable-infobars", "disable-extensions" ],
"binary": "C:\\ProgramData\\App-V\\4AA48366-B631-45EE-82D7-E11CC9775D58\\CACA209E-92FA-47CD-A64A-CD82B64765D2\\Root\\VFS\\ProgramFilesX86\\Google\\Chrome\\Application\\chrome.exe",
"extensions": [ ],
"useAutomationExtension": false
}
}
}
[1546263968.809][INFO]: Populating Preferences file: {
"alternate_error_pages": {
"enabled": false
},
"autofill": {
"enabled": false
},
"browser": {
"check_default_browser": false
},
"distribution": {
"import_bookmarks": false,
"import_history": false,
"import_search_engine": false,
"make_chrome_default_for_user": false,
"skip_first_run_ui": true
},
"dns_prefetching": {
"enabled": false
},
"profile": {
"content_settings": {
"pattern_pairs": {
"https://*,*": {
"media-stream": {
"audio": "Default",
"video": "Default"
}
}
}
},
"default_content_setting_values": {
"geolocation": 1
},
"default_content_settings": {
"geolocation": 1,
"mouselock": 1,
"notifications": 1,
"popups": 1,
"ppapi-broker": 1
},
"password_manager_enabled": false
},
"safebrowsing": {
"enabled": false
},
"search": {
"suggest_enabled": false
},
"translate": {
"enabled": false
}
}
[1546263968.812][INFO]: Populating Local State file: {
"background_mode": {
"enabled": false
},
"ssl": {
"rev_checking": {
"enabled": false
}
}
}
[1546263968.817][INFO]: Launching chrome: "C:\ProgramData\App-V\4AA48366-B631-45EE-82D7-E11CC9775D58\CACA209E-92FA-47CD-A64A-CD82B64765D2\Root\VFS\ProgramFilesX86\Google\Chrome\Application\chrome.exe" --disable-background-networking --disable-client-side-phishing-detection --disable-default-apps --disable-extensions --disable-gpu --disable-hang-monitor --disable-infobars --disable-popup-blocking --disable-prompt-on-repost --disable-sync --disable-web-resources --enable-automation --enable-logging --force-fieldtrials=SiteIsolationExtensions/Control --ignore-certificate-errors --log-level=3 --metrics-recording-only --no-first-run --no-sandbox --password-store=basic --remote-debugging-port=0 --start-maximized --test-type --use-mock-keychain --user-data-dir="%AppData%\Local\Temp\scoped_dir4576_7630" data:,
[1546263969.963][INFO]: RESPONSE InitSession unknown error: Chrome failed to start: crashed
(unknown error: DevToolsActivePort file doesn't exist)
(The process started from chrome location C:\ProgramData\App-V\4AA48366-B631-45EE-82D7-E11CC9775D58\CACA209E-92FA-47CD-A64A-CD82B64765D2\Root\VFS\ProgramFilesX86\Google\Chrome\Application\chrome.exe is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
[1546263969.964][DEBUG]: Log type 'driver' lost 0 entries on destruction
[1546263969.964][DEBUG]: Log type 'browser' lost 0 entries on destruction