Class: Watir::JSButton

Inherits:
Object
  • Object
show all
Defined in:
lib/watir/popup.rb

Instance Method Summary collapse

Constructor Details

#initialize(hWnd, caption) ⇒ JSButton

Returns a new instance of JSButton.



15
16
17
18
# File 'lib/watir/popup.rb', line 15

def initialize(hWnd, caption)
  @hWnd = hWnd
  @caption = caption
end

Instance Method Details

#startClicker(waitTime = 3) ⇒ Object



20
21
22
23
24
25
26
27
28
# File 'lib/watir/popup.rb', line 20

def startClicker(waitTime=3)
  clicker = WinClicker.new
  clicker.clickJSDialog_Thread
  # clickerThread = Thread.new(@caption) {
  #   sleep waitTime
  #   puts "After the wait time in startClicker"
  #   clickWindowsButton_hwnd(hwnd, buttonCaption)
  #}
end