Infosys interview question

Write code to Take Screenshot in Selenium ?