Sha256: 9f0109dd3371c495d67dc8a123489a59d632f3e418e6f69ca46a3758a753b35a
Contents?: true
Size: 533 Bytes
Versions: 29
Compression:
Stored size: 533 Bytes
Contents
# Reopen com.gargoylesoftware.htmlunit.ConfirmHandler to provide an interface to # confirm a dialog and capture its message module HtmlUnit module ConfirmHandler # Boolean - true for ok, false for cancel attr_accessor :handleConfirmValue # last confirmation's message attr_reader :text # handleConfirm will be called by htmlunit on a confirm, so store the message. def handleConfirm(page, message) @text = message return handleConfirmValue.nil? ? true : handleConfirmValue end end end
Version data entries
29 entries across 29 versions & 3 rubygems