I have created an executable jar file to run on chrome. However, since the past few releases, I am getting a script debugging pop-up. This doesn't essentially look like a code error. However, I would like to know if there is any option to turn off script debugging from chromedriver.exe
Alternatively, is there any setting in eclipse that I need to see before I publish the executable jar that would keep the debugging off? Unfortunately, there is no particular point where this pop up appears. It comes any time at any point. Also due to company policy, I will not be able to provide the complete code for your checking but find the unhandled alert exception that shows up before this alert.
Kindly check if you can provide a generic answer to solve this issue.
org.openqa.selenium.UnhandledAlertException: unexpected alert open: {Alert text : It is a ComDebug error. Please close a debug window and restart(Ctrl+Shift+X).}
(Session info: chrome=70.0.3538.110)
(Driver info: chromedriver=2.41.578737 (49da6702b16031c40d63e5618de03a32ff6c197e),platform=Windows NT 10.0.17134 x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 0 milliseconds: null
Build info: version: '3.14.0', revision: 'aacccce0', time: '2018-08-02T20:05:20.749Z'
System info: host: 'IPSH-DES-570', ip: '10.91.26.138', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_191'
Driver info: org.openqa.selenium.chrome.ChromeDriver
Capabilities {acceptInsecureCerts: false, acceptSslCerts: false, applicationCacheEnabled: false, browserConnectionEnabled: false, browserName: chrome, chrome: {chromedriverVersion: 2.41.578737 (49da6702b16031..., userDataDir: C:\Users\NARAYA~1\AppData\L...}, cssSelectorsEnabled: true, databaseEnabled: false, goog:chromeOptions: {debuggerAddress: localhost:53612}, handlesAlerts: true, hasTouchScreen: false, javascriptEnabled: true, locationContextEnabled: true, mobileEmulationEnabled: false, nativeEvents: true, networkConnectionEnabled: false, pageLoadStrategy: normal, platform: XP, platformName: XP, rotatable: false, setWindowRect: true, takesHeapSnapshot: true, takesScreenshot: true, unexpectedAlertBehaviour: , unhandledPromptBehavior: , version: 70.0.3538.110, webStorageEnabled: true}
Session ID: b112dc8d5914d5554252863832828baa
*** Element info: {Using=id, value=btn_t8Save}