Module Watir::ScreenCapture
In: watir/screen_capture.rb

Methods

Constants

KEYEVENTF_KEYUP = 0x2
SW_HIDE = 0
SW_SHOW = 5
SW_SHOWNORMAL = 1
VK_CONTROL = 0x11
VK_F4 = 0x73
VK_MENU = 0x12
VK_RETURN = 0x0D
VK_SHIFT = 0x10
VK_SNAPSHOT = 0x2C
VK_TAB = 0x09
GMEM_MOVEABLE = 0x0002
CF_TEXT = 1

Public Instance methods

this method saves the current window or whole screen as either a bitmap or a jpeg It uses paint to save the file, so will barf if a duplicate filename is selected, or the path doesnt exist etc

   * filename        - string  -  the name of the file to save. If its not fully qualified the current directory is used
   * active_window   - boolean - if true, the whole screen is captured, if false,  just the active window is captured
   * save_as_bmp     - boolean - if true saves the file as a bitmap, saves it as a jpeg otherwise

[Validate]