Which Selenium WebDriver method allows you to capture a screenshot of the current browser state for debugging purposes?
-
A
driver.captureScreen()
-
B
((TakesScreenshot) driver).getScreenshotAs(OutputType.FILE)
-
C
driver.saveScreenshot()
-
D
driver.screenshot().save()