Class: Prickle::Capybara::Popups::Webkit
- Inherits:
-
Object
- Object
- Prickle::Capybara::Popups::Webkit
- Includes:
- Capybara::DSL
- Defined in:
- lib/prickle/capybara/popup/webkit.rb
Instance Method Summary collapse
- #accept(&block) ⇒ Object
- #confirm(&block) ⇒ Object
- #contains_message?(message) ⇒ Boolean
- #dismiss(&block) ⇒ Object
- #message ⇒ Object
Instance Method Details
#accept(&block) ⇒ Object
18 19 20 21 |
# File 'lib/prickle/capybara/popup/webkit.rb', line 18 def accept &block set_type_to :alert manage_popup true, &block end |
#confirm(&block) ⇒ Object
8 9 10 11 |
# File 'lib/prickle/capybara/popup/webkit.rb', line 8 def confirm &block set_type_to :confirm manage_popup true, &block end |
#contains_message?(message) ⇒ Boolean
27 28 29 |
# File 'lib/prickle/capybara/popup/webkit.rb', line 27 def raise Exceptions::MessageNotContainedInPopup.new(self.) unless self..include? end |
#dismiss(&block) ⇒ Object
13 14 15 16 |
# File 'lib/prickle/capybara/popup/webkit.rb', line 13 def dismiss &block set_type_to :confirm manage_popup false, &block end |
#message ⇒ Object
23 24 25 |
# File 'lib/prickle/capybara/popup/webkit.rb', line 23 def @message end |