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

Make debugging scripts simpler #1503

Open
ankur22 opened this issue Nov 1, 2024 · 0 comments
Open

Make debugging scripts simpler #1503

ankur22 opened this issue Nov 1, 2024 · 0 comments
Labels
feature A new feature

Comments

@ankur22
Copy link
Collaborator

ankur22 commented Nov 1, 2024

Feature Description

When creating a test script, it's a common pattern to use the devtools inspector to view the webpage under test to find elements in the page that we want to work with. It's also useful for many other reasons, especially when bugs within the website under test are affecting the test.

At the moment there isn't a convenient way to have the devtools window open while the test is running [in headful mode]. It usually requires adding sleep or page.waitForTimeout in the test script to allow time to open devtools and inspect the website under test.

It would be good if we can improve the DX so that the devtools window opens when the test starts and keep it open throughout the test run.

Suggested Solution (optional)

  1. Provide a configuration (env var) to have the devtools window open when running in headlful mode only.
  2. Honour 'debugger' statements and pause the execution automatically without having to place sleep or page.waitForTimeout.

Already existing or connected issues / PRs (optional)

No response

@ankur22 ankur22 added the feature A new feature label Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A new feature
Projects
None yet
Development

No branches or pull requests

1 participant