WinAppDriver icon indicating copy to clipboard operation
WinAppDriver copied to clipboard

Taking Screenshot is quiting the driver

Open LisaAga opened this issue 3 years ago • 1 comments

Hi Team,

I am trying to implement the screenshot functionality for my windows application. but everytime the command is executed the driver gets quit automatically and i get an exception "Currently selected window has been closed " . Can anyone help me here how can i take screenshot in java.

I am using the below code: File scrFile = driver.getScreenshotAs(OutputType.FILE);

LisaAga avatar Aug 02 '22 13:08 LisaAga

LisaAga You can take a screenshot of the screen instead of window https://stackoverflow.com/questions/58305/is-there-a-way-to-take-a-screenshot-using-java-and-save-it-to-some-sort-of-image

Shakevg avatar Sep 17 '22 13:09 Shakevg