Exception: Capybara::Poltergeist::MouseEventFailed
Instance Attribute Summary
Attributes inherited from NodeError
#node
Attributes inherited from ClientError
#response
Instance Method Summary
collapse
Methods inherited from NodeError
#initialize
Methods inherited from ClientError
#initialize
Instance Method Details
#message ⇒ Object
99
100
101
102
103
104
|
# File 'lib/capybara/poltergeist/errors.rb', line 99
def message
"Firing a #{name} at co-ordinates [#{position.join(', ')}] failed. Poltergeist detected " \
"another element with CSS selector '#{selector}' at this position. " \
"It may be overlapping the element you are trying to interact with. " \
"If you don't care about overlapping elements, try using node.trigger('#{name}')."
end
|
#name ⇒ Object
87
88
89
|
# File 'lib/capybara/poltergeist/errors.rb', line 87
def name
response['args'][0]
end
|
#position ⇒ Object
95
96
97
|
# File 'lib/capybara/poltergeist/errors.rb', line 95
def position
[response['args'][2]['x'], response['args'][2]['y']]
end
|
#selector ⇒ Object
91
92
93
|
# File 'lib/capybara/poltergeist/errors.rb', line 91
def selector
response['args'][1]
end
|