Skip to content

Commit 05efd60

Browse files
committed
Stylistic: javascript → JavaScript
1 parent ea616c5 commit 05efd60

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

src/scripting.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -62,18 +62,18 @@ example: navigate http://webmail.aol.com
6262
```
6363

6464
#### `exec`
65-
Executes javascript.
65+
Executes JavaScript.
6666
Browser Support: IE, Chrome, Firefox
6767
```markup
68-
usage: exec <javascript code>
68+
usage: exec <JavaScript code>
6969
example: exec window.setInterval('window.scrollBy(0,600)', 1000);
7070
```
7171

7272
#### `execAndWait`
73-
Executes javascript and waits for the browser to complete any activity generated from the action.
73+
Executes JavaScript and waits for the browser to complete any activity generated from the action.
7474
Browser Support: IE, Chrome, Firefox
7575
```markup
76-
usage: execAndWait <javascript code>
76+
usage: execAndWait <JavaScript code>
7777
example: execAndWait window.setInterval('window.scrollBy(0,600)', 1000);
7878
```
7979

@@ -272,7 +272,7 @@ example: selectValue id=country usa
272272
For the list of supported selectors, see [Selectors](#selectors).
273273

274274
#### `sendClick` / `sendClickAndWait`
275-
Creates a javascript `onclick` event and sends it to the indicated element.
275+
Creates a JavaScript `onclick` event and sends it to the indicated element.
276276
Browser Support: IE
277277
```markup
278278
usage: sendClickAndWait <wpt-selector>
@@ -310,7 +310,7 @@ example: keypress Enter
310310
For the difference between `keypress` and `keypressAndWait`, see [`click`](#click) and [`clickAndWait`](#clickandwait).
311311

312312
#### `sendKeyDown` / `sendKeyUp` / `sendKeyPress` (`sendKeyDownAndWait` / `sendKeyUpAndWait` / `sendKeyPressAndWait`)
313-
Creates a javascript keyboard event (`onkeydown`, `onkeyup`, `onkeypress`) and sends it to the indicated element.
313+
Creates a JavaScript keyboard event (`onkeydown`, `onkeyup`, `onkeypress`) and sends it to the indicated element.
314314
Browser Support: IE
315315
```markup
316316
usage: sendKeyDownAndWait <wpt-selector> <key>
@@ -376,18 +376,18 @@ example: submitForm name=AOLLoginForm
376376
For the list of supported selectors, see [Selectors](#selectors).
377377

378378
#### `exec`
379-
Executes javascript.
379+
Executes JavaScript.
380380
Browser Support: IE, Chrome, Firefox
381381
```markup
382-
usage: exec <javascript code>
382+
usage: exec <JavaScript code>
383383
example: exec window.setInterval('window.scrollBy(0,600)', 1000);
384384
```
385385

386386
#### `execAndWait`
387-
Executes javascript and waits for the browser to complete any activity generated from the action.
387+
Executes JavaScript and waits for the browser to complete any activity generated from the action.
388388
Browser Support: IE, Chrome, Firefox
389389
```markup
390-
usage: execAndWait <javascript code>
390+
usage: execAndWait <JavaScript code>
391391
example: execAndWait window.setInterval('window.scrollBy(0,600)', 1000);
392392
```
393393

@@ -429,10 +429,10 @@ example: setTimeout 240
429429
#### `waitFor`
430430
Poll the page waiting for the supplied script to evaluate to true. Must be set before the navigation step that is to be measured and persists until cleared (by providing an empty script).
431431
```markup
432-
usage: waitFor <javascript snippet>
432+
usage: waitFor <JavaScript snippet>
433433
example: waitFor document.getElementById('results-with-statistics') && document.getElementById('results-with-statistics').innerText.length > 0
434434
435-
<javascript snippet> - Code to evaluate periodically to test for complete. Should evaluate to true when the step is to stop.
435+
<JavaScript snippet> - Code to evaluate periodically to test for complete. Should evaluate to true when the step is to stop.
436436
```
437437

438438
#### `waitInterval`

0 commit comments

Comments
 (0)