Class: Watir::JSButton
- Inherits:
 - 
      Object
      
        
- Object
 - Watir::JSButton
 
 
- Defined in:
 - lib/watir/popup.rb
 
Instance Method Summary collapse
- 
  
    
      #initialize(hWnd, caption)  ⇒ JSButton 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of JSButton.
 - #startClicker(waitTime = 3) ⇒ Object
 
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  |