Id like to hide the web browser when running a test case. I take a screenshot of a maximised window at the end of the test, and iv found that the mouse cursor is captured in the screenshot which i dont want.
If there is an option or some code that enables me to do this, that would be great.
There is an option to run the browser “headless”, so you don’t see any active windows. You can start it by selecting the down arrow next to the Run button and choosing Headless. That might be what you’re looking for.
Thanks Peter, i have tried the headless version and this isn’t quite what i’m after as i seem to get a smaller viewport captured in the screenshot, but thanks for the suggestion.
This no longer appears to be an issue in any case, leaving the tests to run without switching between applications / windows seems to not capture the mouse cursor.