Skip to content

Commit

Permalink
Adding 'javascript' instruction documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Hainish committed Jul 12, 2015
1 parent 98a1950 commit 29d00e1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions documentation/schema.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ a subset of [Capybara methods](http://rubydoc.info/github/jnicklas/capybara/mast
`form`.
- [`wait`](#wait): **Experimental.** Indicates that the
specified time interval should pass before proceeding.
- [`javascript`](#javascript): Execute some javascript on current page

**success**

Expand Down Expand Up @@ -200,6 +201,13 @@ that should be waited before performing the next action.
_This step is not to be confused with the `wait` option under `find`, which
denotes the maximum time that should pass while waiting for an element to appear._

### javascript

The `value` key determines what javascript to execute in this step. Note that
this instruction should only be used sparingly. It is better to mimic user
behavior as closely as possible, but if there is no way to proceed with normal
ux steps, this instruction may be used.

---

## Examples
Expand Down

0 comments on commit 29d00e1

Please sign in to comment.