Sha256: cadcc1e040e67f6d3d4c11e992599f109ae4c4e5534b55f0dc12d393ddc00042

Contents?: true

Size: 706 Bytes

Versions: 17

Compression:

Stored size: 706 Bytes

Contents

module Watir
  # POPUP object
  class PopUp
    def initialize(container)
      @container = container
      @page_container = container.page_container
    end
    
    def button(caption)
      return JSButton.new(@container.getIE.hwnd, caption)
    end
  end
  
  class JSButton
    def initialize(hWnd, caption)
      @hWnd = hWnd
      @caption = caption
    end
    
    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
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
watir-1.8.1 lib/watir/popup.rb
watir-1.8.1.rc1 lib/watir/popup.rb
watir-1.8.0 lib/watir/popup.rb
watir-1.8.0.rc1 lib/watir/popup.rb
watir-1.7.1 lib/watir/popup.rb
watir-1.7.0 lib/watir/popup.rb
watir-1.7.0.rc1 lib/watir/popup.rb
watir-1.6.7 lib/watir/popup.rb
watir-1.6.7.rc1 lib/watir/popup.rb
watir-1.6.6 lib/watir/popup.rb
watir-1.6.6.rc2 lib/watir/popup.rb
watir-1.6.6.rc1 lib/watir/popup.rb
watir-1.5.3 watir/popup.rb
watir-1.5.4 watir/popup.rb
watir-1.6.2 lib/watir/popup.rb
watir-1.5.6 watir/popup.rb
watir-1.5.5 watir/popup.rb