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

Code opens a chrome browse when testing locally #126

Open
paul-uz opened this issue Aug 7, 2024 · 0 comments
Open

Code opens a chrome browse when testing locally #126

paul-uz opened this issue Aug 7, 2024 · 0 comments

Comments

@paul-uz
Copy link

paul-uz commented Aug 7, 2024

When using a basic test of tis package in a node express app, new chrome windows are opened. If i close them, my program crashes.

No screenshots are being saved either.

setInterval(async () => {
  await captureWebsite.file('http://localhost:3000', 'screenshot.png', {
    delay: 10,
    debug: true,
    launchOptions: {
      headless: 'new',
    }
  });
}, 5000);

Code to screenshot localhost every 5 seconds.

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