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

browser.takeScreenshot() hangs on linux and chrome #5393

Open
jniles opened this issue Feb 6, 2020 · 0 comments
Open

browser.takeScreenshot() hangs on linux and chrome #5393

jniles opened this issue Feb 6, 2020 · 0 comments

Comments

@jniles
Copy link

jniles commented Feb 6, 2020

Bug report

It appears that await browser.takeScreenshot() is hanging in my configuration. I've confirmed that await browser.getTitle() works.

Control flow is off and I'm using mocha + chai-as-promised to run tests.

My code looks like this:

 it(`should take a screenshot`, async () => {
    console.log('x');
    // take a screenshot
    const n = await browser.getTitle();
    console.log('n', n);
    const x = await browser.takeScreenshot();
    console.log('y');
  });

And the result:
image


  • Node Version: 12.15.0
  • Protractor Version: 5.4.3
  • Angular Version: 1.7.9
  • Browser(s): Chromium 79.0.3945.130 Built on Ubuntu , running on Ubuntu 16.04
  • Operating System and Version Ubuntu 16.04
  • webdriver-manager status output
    [10:36:32] I/status - selenium standalone version available: 3.141.59 [last]
    [10:36:32] I/status - chromedriver versions available: 79.0.3945.130 [last], 80.0.3987.16
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