Screenshot using Selenium – User friendly Tech help
Scenario:-How we can capture error Screenshot while working with Selenium?n n n n n n n Taking Screenshot of nature using Camera n n n nSolution:-We would achieve it using the TakeScreenshot Interface.nnSyntax:-nn1.Capture Screenshot n File sScreenShot = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE); n nOutputType.FILE:- We have used Interface Output and we have taken the screenshot as “File” typenwe…