WinAppDriver
WinAppDriver copied to clipboard
Taking Screenshot is quiting the driver
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 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