Exception: Capybara::Poltergeist::BrowserError
- Defined in:
- lib/capybara/poltergeist/errors.rb
Instance Attribute Summary collapse
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(text) ⇒ BrowserError
constructor
A new instance of BrowserError.
- #message ⇒ Object
Constructor Details
#initialize(text) ⇒ BrowserError
Returns a new instance of BrowserError.
9 10 11 |
# File 'lib/capybara/poltergeist/errors.rb', line 9 def initialize(text) @text = text end |
Instance Attribute Details
#text ⇒ Object (readonly)
Returns the value of attribute text.
7 8 9 |
# File 'lib/capybara/poltergeist/errors.rb', line 7 def text @text end |
Instance Method Details
#message ⇒ Object
13 14 15 |
# File 'lib/capybara/poltergeist/errors.rb', line 13 def "Received error from PhantomJS client: #{text}" end |