You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TL,DR: Browser->fitToContent is missing a size validity check, and an invalid window size breaks the driver's screenshot capability.
When a test failure occurs, the test worker (by default) tries to resize the browser window in order to capture the whole page.
The problem is that sometimes the page size reported by the driver can have a dimension (or both) equal to 0 - in my case it was the filp/whoops handler, which (as it seems) relies on fixed position layout.
When any dimension of the browser window's size is set to 0, chromedriver is unable to capture a screenshot (because, well, that's impossible).
Here is how it looks like when the chromedriver's verbose logging is turned on:
Description:
TL,DR: Browser->fitToContent is missing a size validity check, and an invalid window size breaks the driver's screenshot capability.
When a test failure occurs, the test worker (by default) tries to resize the browser window in order to capture the whole page.
The problem is that sometimes the page size reported by the driver can have a dimension (or both) equal to 0 - in my case it was the filp/whoops handler, which (as it seems) relies on fixed position layout.
When any dimension of the browser window's size is set to 0, chromedriver is unable to capture a screenshot (because, well, that's impossible).
Here is how it looks like when the chromedriver's verbose logging is turned on:
Steps To Reproduce:
This seems to be a simple fix, we just need to add a check here. I can do it by myself and send a pull request.
The text was updated successfully, but these errors were encountered: