Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can CodeceptJS dynamic config accept an async function? #4862

Open
MinakoKitani opened this issue Feb 18, 2025 · 0 comments
Open

Can CodeceptJS dynamic config accept an async function? #4862

MinakoKitani opened this issue Feb 18, 2025 · 0 comments

Comments

@MinakoKitani
Copy link

Question

Can CodeceptJS dynamic config accept an async function?

I need to connect to a CEF container using browserWSEndpoint, but the webSocketDebuggerUrl is not static. Before launching the browser, I have to request http://localhost:xxx/json/version to get the correct webSocketDebuggerUrl and pass it to browserWSEndpoint.

Since this requires an asynchronous operation, is there a way to handle this in the dynamic config?

Additional Context

  • The browserWSEndpoint is not constant throughout the test flow.
  • During automation, we have scenarios where the application closes and restarts, meaning we need to fetch a new webSocketDebuggerUrl dynamically at different points in the test execution.

Is there an existing way to handle this, or should I look into modifying the helper to support this behavior?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant