Tech Mahindra Interview Question

How to capture screenshot in WebDriver?

Interview Answer

Anonymous

Dec 12, 2019

Fileshot=((takescreenshot)driver.getscreenshot(outputtype.files)); Fileutils.copyfile=shots,newfile(path);