lib/page-object/platforms/watir/page_object.rb
#
# platform method to handle an alert popup
# See PageObject#alert
#
platform method to handle an alert popup
See PageObject#alert
platform method to handle an alert popup See PageObject#alert
def alert(frame=nil, &block)
          switch_to_frame(frame)
          yield
          value = nil
          if @browser.alert.exists?
            value = @browser.alert.text
            @browser.alert.ok
          end
          switch_to_default_content(frame)
          value
        end
def alert ( frame = nil , & block ) switch_to_frame ( frame ) yield value = nil if @browser . alert . exists? value = @browser . alert . text @browser . alert . ok end switch_to_default_content ( frame ) value end
platform method to handle an alert popup
See PageObject#alert
platform method to handle an alert popup See PageObject#alert
frame
block