Module: HtmlUnit::ConfirmHandler
- Defined in:
- lib/akephalos/htmlunit/ext/confirm_handler.rb
Instance Attribute Summary collapse
-
#handleConfirmValue ⇒ Object
Boolean - true for ok, false for cancel.
-
#text ⇒ Object
readonly
last confirmation’s message.
Instance Method Summary collapse
-
#handleConfirm(page, message) ⇒ Object
handleConfirm will be called by htmlunit on a confirm, so store the message.
Instance Attribute Details
#handleConfirmValue ⇒ Object
Boolean - true for ok, false for cancel
7 8 9 |
# File 'lib/akephalos/htmlunit/ext/confirm_handler.rb', line 7 def handleConfirmValue @handleConfirmValue end |
#text ⇒ Object (readonly)
last confirmation’s message
10 11 12 |
# File 'lib/akephalos/htmlunit/ext/confirm_handler.rb', line 10 def text @text end |
Instance Method Details
#handleConfirm(page, message) ⇒ Object
handleConfirm will be called by htmlunit on a confirm, so store the message.
13 14 15 16 |
# File 'lib/akephalos/htmlunit/ext/confirm_handler.rb', line 13 def handleConfirm(page, ) @text = return handleConfirmValue.nil? ? true : handleConfirmValue end |