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

Puppeteer encountered an error while running scenario - TimeoutError on Windows #996

Open
kunalanurkar opened this issue Feb 27, 2019 · 8 comments

Comments

@kunalanurkar
Copy link

Hi,

After running - backstop reference command getting below timeout error.
Also sharing backstop.json file, thanks in advance for your help.

COMMAND | Executing core for "reference"
clean | backstop_data/bitmaps_reference was cleaned.
createBitmaps | Selected 1 of 1 scenarios.
CREATING NEW REFERENCE FILE
CREATING NEW REFERENCE FILE
Puppeteer encountered an error while running scenario "BackstopJS Homepage"
TimeoutError: Navigation Timeout Exceeded: 120000ms exceeded
Puppeteer encountered an error while running scenario "BackstopJS Homepage"
TimeoutError: Navigation Timeout Exceeded: 120000ms exceeded

Run $ backstop test to generate diff report.

  COMMAND | Command "reference" successfully executed in [130.748s]

backstop.json

{
"id": "backstop_default",
"viewports": [
{
"label": "phone",
"width": 320,
"height": 480
},
{
"label": "tablet",
"width": 1024,
"height": 768
}
],
"scenarios": [
{
"label": "BackstopJS Homepage",
"cookiePath": "backstop_data/engine_scripts/cookies.json",
"url": "https://www.google.com/?hl=ru",
"referenceUrl": "https://www.google.com/",
"readyEvent": "",
"readySelector": "",
"delay": 0,
"hideSelectors": [],
"removeSelectors": [],
"hoverSelector": "",
"clickSelector": "",
"postInteractionWait": 0,
"selectors": [],
"selectorExpansion": true,
"expect": 0,
"misMatchThreshold" : 0.1,
"requireSameDimensions": true
}
],
"paths": {
"bitmaps_reference": "backstop_data/bitmaps_reference",
"bitmaps_test": "backstop_data/bitmaps_test",
"engine_scripts": "backstop_data/engine_scripts",
"html_report": "backstop_data/html_report",
"ci_report": "backstop_data/ci_report"
},
"report": ["browser"],
"engine": "puppeteer",
"engineOptions": {
"waitTimeout": 120000,
"args": ["--no-sandbox"]
},
"asyncCaptureLimit": 5,
"asyncCompareLimit": 50,
"debug": false,
"debugWindow": false
}

@kunalanurkar kunalanurkar changed the title Puppeteer encountered an error while running scenario - TimeoutError Puppeteer encountered an error while running scenario - TimeoutError on Windows Feb 27, 2019
@anurag8263
Copy link

I am also facing the same issue.

@Savi27
Copy link

Savi27 commented Aug 1, 2019

I am facing the same issue. Did anyone find the cause and solution to this problem?

@stingrayfunk
Copy link

I am also having this issue.

@garris
Copy link
Owner

garris commented Apr 8, 2020

Does this patch fix the issue?

@amjad1233
Copy link

@garris I can confirm the patch works. I tried with one of my projects after applying the patch it wasn't erroring anymore.

@amjad1233
Copy link

BeforeJSError

After Applying Patch :

AfterScreenshot

@dandeleon03
Copy link

@garris I can confirm the patch works. I tried with one of my projects after applying the patch it wasn't erroring anymore.

Hi @amjad1233, how did you install the patch?

Can you please provide detailed steps?

I'm not a developer.

@dhpizza
Copy link

dhpizza commented Nov 2, 2023

please get this PR merged 🙏 so a new fixed dockerimage can be build and used

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

8 participants