Skip to content

[🐛 Bug]: SYNCHRONOUS TERMINATION NOTICE due to exit-hook update - handleUserPrompt #15129

@rameshk91

Description

@rameshk91

Have you read the Contributing Guidelines on issues?

WebdriverIO Version

latest

Node.js Version

20.20.0

Mode

Standalone Mode

Which capabilities are you using?

What happened?

Error: WebDriver Bidi command "browsingContext.handleUserPrompt" failed with error: no such frame - Context A92861BE681A12623A415638FB99F32A not found
at BidiHandler.send (file:///D:/a/webdriverio-tests/webdriverio-tests/node_modules/webdriver/build/node.js:357:23)
at BidiHandler.browsingContextHandleUserPrompt (file:///D:/a/webdriverio-tests/webdriverio-tests/node_modules/webdriver/build/node.js:642:31)
at Browser.value (file:///D:/a/webdriverio-tests/webdriverio-tests/node_modules/webdriver/build/node.js:1310:26)
at Browser.wrapCommandFn (D:\a\webdriverio-tests\webdriverio-tests\node_modules@wdio\utils\build\index.js:982:32)
at async _DialogManager.#handleUserPrompt (D:\a\webdriverio-tests\webdriverio-tests\node_modules\webdriverio\build\node.js:5137:16)
[0-1] SYNCHRONOUS TERMINATION NOTICE: When explicitly exiting the process via process.exit or via a parent process, asynchronous tasks in your exitHooks will not run. Either remove these tasks, use gracefulExit() instead of process.exit(), or ensure your parent process sends a SIGINT to the process running this code.
[0-1] file:///D:/a/webdriverio-tests/webdriverio-tests/node_modules/webdriver/build/node.js:357
[0-1] const failError = new Error(WebDriver Bidi command "${params.method}" failed);
[0-1] ^
[0-1]
[0-1] Error: WebDriver Bidi command "browsingContext.handleUserPrompt" failed with error: no such frame - Context CAD6C5FC0CEF746B06882DCA2CB5A11F not found
[0-1] at BidiHandler.send (file:///D:/a/webdriverio-tests/webdriverio-tests/node_modules/webdriver/build/node.js:357:23)
[0-1] at BidiHandler.browsingContextHandleUserPrompt (file:///D:/a/webdriverio-tests/webdriverio-tests/node_modules/webdriver/build/node.js:642:31)
[0-1] at Browser.value (file:///D:/a/webdriverio-tests/webdriverio-tests/node_modules/webdriver/build/node.js:1310:26)
[0-1] at Browser.wrapCommandFn (D:\a\webdriverio-tests\webdriverio-tests\node_modules@wdio\utils\build\index.js:982:32)
[0-1] at async _DialogManager.#handleUserPrompt (D:\a\webdriverio-tests\webdriverio-tests\node_modules\webdriverio\build\node.js:5137:16)
[0-1]
[0-1] Node.js v20.20.0

I have seen the same error 14647 . This seems to be another case where it needs the same fix to be applied @christian-bromann @mccmrunal

What is your expected behavior?

Should not see this error message

How to reproduce the bug.

n/a

Relevant log output

Error: WebDriver Bidi command "browsingContext.handleUserPrompt" failed with error: no such frame - Context A92861BE681A12623A415638FB99F32A not found
    at BidiHandler.send (file:///D:/a/webdriverio-tests/webdriverio-tests/node_modules/webdriver/build/node.js:357:23)
    at BidiHandler.browsingContextHandleUserPrompt (file:///D:/a/webdriverio-tests/webdriverio-tests/node_modules/webdriver/build/node.js:642:31)
    at Browser.value (file:///D:/a/webdriverio-tests/webdriverio-tests/node_modules/webdriver/build/node.js:1310:26)
    at Browser.wrapCommandFn (D:\a\webdriverio-tests\webdriverio-tests\node_modules\@wdio\utils\build\index.js:982:32)
    at async _DialogManager.#handleUserPrompt (D:\a\webdriverio-tests\webdriverio-tests\node_modules\webdriverio\build\node.js:5137:16)
[0-1] SYNCHRONOUS TERMINATION NOTICE: When explicitly exiting the process via process.exit or via a parent process, asynchronous tasks in your exitHooks will not run. Either remove these tasks, use gracefulExit() instead of process.exit(), or ensure your parent process sends a SIGINT to the process running this code.
[0-1] file:///D:/a/webdriverio-tests/webdriverio-tests/node_modules/webdriver/build/node.js:357
[0-1]     const failError = new Error(`WebDriver Bidi command "${params.method}" failed`);
[0-1]                       ^
[0-1] 
[0-1] Error: WebDriver Bidi command "browsingContext.handleUserPrompt" failed with error: no such frame - Context CAD6C5FC0CEF746B06882DCA2CB5A11F not found
[0-1]     at BidiHandler.send (file:///D:/a/webdriverio-tests/webdriverio-tests/node_modules/webdriver/build/node.js:357:23)
[0-1]     at BidiHandler.browsingContextHandleUserPrompt (file:///D:/a/webdriverio-tests/webdriverio-tests/node_modules/webdriver/build/node.js:642:31)
[0-1]     at Browser.value (file:///D:/a/webdriverio-tests/webdriverio-tests/node_modules/webdriver/build/node.js:1310:26)
[0-1]     at Browser.wrapCommandFn (D:\a\webdriverio-tests\webdriverio-tests\node_modules\@wdio\utils\build\index.js:982:32)
[0-1]     at async _DialogManager.#handleUserPrompt (D:\a\webdriverio-tests\webdriverio-tests\node_modules\webdriverio\build\node.js:5137:16)
[0-1] 
[0-1] Node.js v20.20.0

Code of Conduct

  • I agree to follow this project's Code of Conduct

Is there an existing issue for this?

  • I have searched the existing issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions