Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fix erroneous execute_script mention in README #815

Closed
wants to merge 1 commit into from

3 participants

@bjhess

README scripting section misnamed evaluate_script as execute_script.

@bjhess bjhess Fix erroneous execute_script mention in README
README scripting section misnamed evaluate_script
as execute_script.
6a98bcf
@twalpole
Collaborator

I believe execute_script was correct there - it executes the javascript while ignoring the result

@jnicklas
Owner

Yes, the README is correct.

@jnicklas jnicklas closed this
@bjhess

Sorry about this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 11, 2012
  1. @bjhess

    Fix erroneous execute_script mention in README

    bjhess authored
    README scripting section misnamed evaluate_script
    as execute_script.
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  README.md
View
2  README.md
@@ -470,7 +470,7 @@ end
In drivers which support it, you can easily execute JavaScript:
```ruby
-page.execute_script("$('body').empty()")
+page.evaluate_script("$('body').empty()")
```
For simple expressions, you can return the result of the script. Note
Something went wrong with that request. Please try again.