lib/capybara/poltergeist/browser.rb in poltergeist-1.17.0 vs lib/capybara/poltergeist/browser.rb in poltergeist-1.18.0

- old
+ new

@@ -41,10 +41,14 @@ def current_url command 'current_url' end + def frame_url + command 'frame_url' + end + def status_code command 'status_code' end def body @@ -57,10 +61,14 @@ def title command 'title' end + def frame_title + command 'frame_title' + end + def parents(page_id, id) command 'parents', page_id, id end def find(method, selector) @@ -194,20 +202,20 @@ yield ensure switch_to_window(original) end - def click(page_id, id) - command 'click', page_id, id + def click(page_id, id, keys=[], offset={}) + command 'click', page_id, id, keys, offset end - def right_click(page_id, id) - command 'right_click', page_id, id + def right_click(page_id, id, keys=[], offset={}) + command 'right_click', page_id, id, keys, offset end - def double_click(page_id, id) - command 'double_click', page_id, id + def double_click(page_id, id, keys=[], offset={}) + command 'double_click', page_id, id, keys, offset end def hover(page_id, id) command 'hover', page_id, id end @@ -342,9 +350,13 @@ end def js_errors=(val) @js_errors = val command 'set_js_errors', !!val + end + + def page_settings=(settings) + command 'set_page_settings', settings end def extensions=(names) @extensions = names Array(names).each do |name|