mcdcorp / opentest

Open source test automation tool for web applications, mobile apps and APIs
https://getopentest.org
MIT License
447 stars 107 forks source link

UnhandledAlertException #561

Open ricardonolan opened 2 years ago

ricardonolan commented 2 years ago

OpenTest version number: 1.2.4 ChromeDriver version number: 100.0.4896.60 (6a5d10861ce8de5fce22564658033b43cb7de047-refs/branch-heads/4896@{#875})

Confirm dialog not clicking accept when using the following test:

- description: Close pop up box
            action: org.getopentest.selenium.HandleModal
            args:
              perform: accept

Relevant log information:

22.51.57 Evaluating action 17/18 (org.getopentest.selenium.HandleModal) in segment 1 (Close pop up box)...
22.51.57 TRACE: Initializing action org.getopentest.selenium.HandleModal...
22.51.57 Executing action org.getopentest.selenium.HandleModal with arguments {"perform":"accept"}...
22.51.57 WARN: The waitForAsyncCallsToFinish method failed.
22.51.57 WARN: org.openqa.selenium.UnhandledAlertException: unexpected alert open: {Alert text : Are you sure you want to save the new job?}
  (Session info: chrome=101.0.4951.41): Are you sure you want to save the new job?
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
System info: host: 'Kronos.local', ip: '2001:818:ebbc:4a00:35b9:f37f:69fc:45ae%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.16', java.version: '11.0.8'
Driver info: org.openqa.selenium.chrome.ChromeDriver
Capabilities {acceptInsecureCerts: false, browserName: chrome, browserVersion: 101.0.4951.41, chrome: {chromedriverVersion: 100.0.4896.60 (6a5d10861ce8..., userDataDir: /var/folders/7z/kfn29_ts3w9...}, goog:chromeOptions: {debuggerAddress: localhost:65513}, javascriptEnabled: true, networkConnectionEnabled: false, pageLoadStrategy: normal, platform: MAC, platformName: MAC, proxy: Proxy(), setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify, webauthn:extension:credBlob: true, webauthn:extension:largeBlob: true, webauthn:virtualAuthenticators: true}
Session ID: 931d40f43a1dcef959220e37729de02b
    at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:120)
    at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:49)
    at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:158)
    at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:83)
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)
    at org.openqa.selenium.remote.RemoteWebDriver.executeAsyncScript(RemoteWebDriver.java:506)
    at com.paulhammant.ngwebdriver.NgWebDriver.waitForAngularRequestsToFinish(NgWebDriver.java:68)
    at org.getopentest.selenium.core.SeleniumTestAction.waitForAsyncCallsToFinish(SeleniumTestAction.java:318)
    at org.getopentest.selenium.HandleModal.run(HandleModal.java:18)
    at org.getopentest.base.TestActor.executeAction(TestActor.java:1527)
    at org.getopentest.base.TestActor.executeActionByClassName(TestActor.java:1603)
    at org.getopentest.base.TestActor.executeActionByDef(TestActor.java:1705)
    at org.getopentest.base.TestActor.executeTestSegment(TestActor.java:2073)
    at org.getopentest.base.TestActor.runOneSession(TestActor.java:2981)
    at org.getopentest.base.TestActor.runOneSession(TestActor.java:3017)
    at org.getopentest.Main.main(Main.java:20)
stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.