-
Notifications
You must be signed in to change notification settings - Fork 674
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
Screenshot Error on some Browsers - Unable to locate the page area in the browser window screenshot #2444
Comments
Hi @rquellh! This is not an error, it's warning. Since If you don't mind that screenshots of Firefox have browser UI like menus and bars, you can just ignore the warnings. But I suggest you to share the exact warning message and the taken screenshot to help me understand what's wrong in the captured image. |
is there any way to suppress these warnings? |
Unfortunately, there is no way to disable warnings yet. |
The original question was answered. So I will close the issue. |
Sorry for the delayed response. I have two concerns:
sample use t.takescreenshot().then(function(path){//do something with path}) |
I apologize for a delayed response. I hope that my clarification still can be useful for someone:
2a. In this case |
I strongly ask for adding some way to supress these warnings. My Jenkins outputs look like a total mess. |
Are you requesting a feature or reporting a bug?
Bug
What is the current behavior?
When I upgrade to the latest TestCafe version (0.20.0) and I run tests with screenshots I get the following error in Chrome and Edge but not in Firefox.
This was not an issue with these three browsers in 0.19.2.
It is odd that even though the error message states
Was unable to take a screenshot due to an error.
the screenshots are still in the screenshots folder.What is the expected behavior?
I'm expecting the behavior to mimic Firefox with no errors.
How would you reproduce the current behavior (if this is a bug)?
npm install
npm run test-chrome
npm run test-edge
npm run test-firefox
Provide the test code and the tested page URL (if applicable)
Tested page URL: www.github.com and www.google.com
Test code
see this repo
Specify your
The text was updated successfully, but these errors were encountered: