Home »
MCQs »
Selenium MCQs
In selenium 4, which of the following method allows us to take a screenshot of a specific web element?
53. In selenium 4, which of the following method allows us to take a screenshot of a specific web element?
- GetScreenshot ()
- getScreenshotAs ()
- ScreenshotAs ()
Answer: B) getScreenshotAs ()
Explanation:
getScreenshotAs () allows us to take a screenshot of a specific web element.