lib/capybara_monkey.rb in superbara-0.14.4 vs lib/capybara_monkey.rb in superbara-0.14.5
- old
+ new
@@ -44,9 +44,13 @@
end
self
end
+ def location
+ Capybara.evaluate_script "arguments[0].getBoundingClientRect()", self.native
+ end
+
def type(*inputs)
self.native.type(*inputs)
end
end #Includes