minor wording fix, updated example
This commit is contained in:
parent
a1ef09a243
commit
291a60444a
1 changed files with 11 additions and 10 deletions
|
@ -72,7 +72,7 @@ driver.quit();
|
|||
|
||||
## Setting up with WebdriverIO
|
||||
|
||||
[WebdriverIO](http://webdriver.io/) provided a Node package for testing with web driver.
|
||||
[WebdriverIO](http://webdriver.io/) provides a Node package for testing with web driver.
|
||||
|
||||
### 1. Start chrome driver
|
||||
|
||||
|
@ -86,7 +86,7 @@ Only local connections are allowed.
|
|||
|
||||
Remember the port number `9515`, which will be used later
|
||||
|
||||
### 2. Install WebDriverJS
|
||||
### 2. Install WebdriverIO
|
||||
|
||||
```bash
|
||||
$ npm install webdriverio
|
||||
|
@ -104,14 +104,15 @@ var options = {
|
|||
}
|
||||
};
|
||||
|
||||
webdriverio
|
||||
.remote(options)
|
||||
var client = webdriverio.remote(options);
|
||||
|
||||
client
|
||||
.init()
|
||||
.url('http://google.com')
|
||||
.setValue('#q', 'webdriverio')
|
||||
.click('#btnG')
|
||||
.title(function(err, res) {
|
||||
console.log('Title was: ' + res.value);
|
||||
.getTitle().then(function(title) {
|
||||
console.log('Title was: ' + title);
|
||||
})
|
||||
.end();
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue