Skip to content

Commit 509ed42

Browse files
juliemrandreastt
authored andcommitted
Typo fixes in webdriver.js documentation
Signed-off-by: Andreas Tolfsen <[email protected]>
1 parent 9f3a561 commit 509ed42

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

javascript/webdriver/webdriver.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ webdriver.WebDriver.prototype.executeScript = function(script, var_args) {
459459
* 'var callback = arguments[arguments.length - 1];' +
460460
* 'mailClient.getComposeWindowWidget().onload(callback);');
461461
* driver.switchTo().frame('composeWidget');
462-
* driver.findElement(By.id('to')).sendKEys('[email protected]');
462+
* driver.findElement(By.id('to')).sendKeys('[email protected]');
463463
* </pre></code>
464464
*
465465
* Example #3: Injecting a XMLHttpRequest and waiting for the result. In this
@@ -474,7 +474,7 @@ webdriver.WebDriver.prototype.executeScript = function(script, var_args) {
474474
* xhr.open("GET", "/resource/data.json", true);
475475
* xhr.onreadystatechange = function() {
476476
* if (xhr.readyState == 4) {
477-
* callback(xhr.resposneText);
477+
* callback(xhr.responseText);
478478
* }
479479
* }
480480
* xhr.send('');

0 commit comments

Comments
 (0)