Firefox: Issue with taking screenshots in a popout window

I am creating some test cases that require using the ‘takeScreenshot’ keywords (or some such variation of), I’ve not had any issues with this on Chrome or Edge but when running the tests in Firefox I have found that taking screenshots works until opening a new window or pop-up. See my screenshot below for example script.

I am then getting the following error.

Any help with this issue would be greatly appreciated. I am running the same script on multiple browsers and only hitting this error on Firefox… so far

I’m surprised that’s throwing a JavaScript exception.

What happens if you wait for the popout window to load?


Thanks for the quick response, I did find that passing a file directory as a parameter to the method worked but this has also fixed the issue.
Thanks again!

1 Like