Sha256: 7dec5db7eb3156e18b7bd2d5cb96f403de9879b66eb69b37f4dce9e05051612c
Contents?: true
Size: 666 Bytes
Versions: 9
Compression:
Stored size: 666 Bytes
Contents
module Watir class JavascriptDialog WINDOW_TITLES = ['Message from webpage', 'Windows Internet Explorer','Microsoft Internet Explorer'] def initialize(opts={}) @opts = opts end def exists? javascript_dialog_window.exists? end def button(value) javascript_dialog_window.button(:value => value) end def close javascript_dialog_window.close end def text javascript_dialog_window.text end def javascript_dialog_window @window ||= ::RAutomation::Window.new(:title => @opts[:title] || /^(#{WINDOW_TITLES.join('|')})$/) end end end
Version data entries
9 entries across 9 versions & 1 rubygems