我创建了一个可执行 jar 文件以在 chrome 上运行。但是,由于过去的几个版本,我收到了一个脚本调试弹出窗口。这本质上看起来不像是代码错误。但是,我想知道是否有任何选项可以从 chromedriver.exe 关闭脚本调试
或者,在发布可执行 jar 之前,我需要查看 eclipse 中的任何设置以保持调试关闭?不幸的是,没有出现此弹出窗口的特定点。它随时出现。同样由于公司政策,我将无法提供完整的代码供您检查,但会发现出现在此警报之前的未处理警报异常。
请检查您是否可以提供通用答案来解决此问题。
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}