-
Notifications
You must be signed in to change notification settings - Fork 214
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
Video does not record everything #510
Comments
Here are the logs which show that the docker link was clicked but the video does not show that click happening:
|
I don't actually see the "Docker" page rendered on the screen before the browser closes, when I see it rendered the video also contains it: |
so what's the solution for this? pause at the end of every test? |
@yury-s i don't see the docker page in the video you posted either. |
Hmm, this is likely a problem with the player, I'm playing it right in Chrome and see this at the end: |
Yeah, the actual painting of the page is asynchronous and may happen with some delay after the navigation has completed and the page was rendered in the web process. We are not planning to add instrumentation for that any time soon so if you need to see the page after the failure you can wait for another 100ms or so before closing the context. This way the GPU process and compositor will get a chance to process pending changes. For debugging failing tests we recommend trace viewer. In addition to screenshots before/after actions it also captures state of the DOM which may come in handy when debugging problems with your page. |
Similar to #432 this bug still exists in v1.12.1.
I've added a more complete example below. The video does not show the second click
page.click("a:text('Docker')");
. However if you changepage.waitForSelector("#thisShouldMakeTestFail", new Page.WaitForSelectorOptions().setTimeout(1))
to a larger timeout likepage.waitForSelector("#thisShouldMakeTestFail", new Page.WaitForSelectorOptions().setTimeout(1000))
the video will show clicking on the Docker link.I noticed in #432 that acomment was made that
The problem happens when the page is explicitly closed,
. I don't think this is the case because even if your remove the explicitpage.close
you get the same issue.my
pom.xml
The text was updated successfully, but these errors were encountered: