Module: Async::WebDriver::Scope::ScreenCapture
- Included in:
- Element, Async::WebDriver::Session
- Defined in:
- lib/async/webdriver/scope/screen_capture.rb
Overview
Helpers for working with screen capture.
Instance Method Summary collapse
-
#screenshot ⇒ Object
Take a screenshot of the current page or element.
Instance Method Details
#screenshot ⇒ Object
Take a screenshot of the current page or element.
15 16 17 18 19 |
# File 'lib/async/webdriver/scope/screen_capture.rb', line 15 def screenshot reply = current_scope.post("screenshot") return Base64.decode64(reply) end |