Method: Selenium::Client::GeneratedDriver#capture_screenshot
- Defined in:
- lib/selenium/client/legacy_driver.rb
#capture_screenshot(filename) ⇒ Object
Captures a PNG screenshot to the specified file.
‘filename’ is the absolute path to the file to be written, e.g. “c:blahscreenshot.png”
1639 1640 1641 |
# File 'lib/selenium/client/legacy_driver.rb', line 1639 def capture_screenshot(filename) remote_control_command("captureScreenshot", [filename,]) end |