Skip to content

Commit

Permalink
Support to evaluate_script
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim committed Jan 1, 2011
1 parent cd104f3 commit 241c3a8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/capybara/driver/zombie_driver.rb
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,10 @@ def current_url
socket_read "browser.location.toString()"
end

def evaluate_script(script)
socket_json script
end

def find(selector)
ids = socket_send <<-JS
var sets = [];
Expand Down
2 changes: 2 additions & 0 deletions spec/driver/zombie_driver_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,6 @@
# it_should_behave_like "driver with cookies support"
# it_should_behave_like "driver with infinite redirect detection"
# it_should_behave_like "driver with javascript support"
# it_should_behave_like "driver with frame support"
# it_should_behave_like "driver with support for window switching"
end

0 comments on commit 241c3a8

Please sign in to comment.