Skip to content
This repository was archived by the owner on Aug 5, 2020. It is now read-only.

Commit 2b10575

Browse files
authored
Merge pull request #76 from mobify/rename-navigate
Rename navigate to clickAndWaitUntilMobified to avoid command collisi…
2 parents a8a231e + fed296f commit 2b10575

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

CHANGELOG

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
2.1.0
22
- Adds a `triggerClick` command that uses JavaScript's click.
3+
- Renames `navigate` to `clickAndWaitUntilMobified` to avoid colliding with a core Nightwatch command with the same name.
34
2.0.1
45
-Update [selenium-download](https://github.com/groupon/selenium-download) to 2.0.10
56
- selenium chromedriver 2.29

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,9 @@ this.demoTest = function (browser) {
165165
};
166166
```
167167

168-
#### navigate(selector, callback)
168+
#### clickAndWaitUntilMobified(selector, callback)
169169

170-
The `navigate` command initiates a `click` command on the supplied selector link, navigates to the URL, and then it initiates the `waitUntilMobified` function before it continues the chain of tests.
170+
The `clickAndWaitUntilMobified` command initiates a `click` command on the supplied selector link, navigates to the URL, and then it initiates the `waitUntilMobified` function before it continues the chain of tests.
171171

172172
Parameter Name | Parameter Type | Description
173173
------------- | -------------- | -----------
@@ -176,7 +176,7 @@ callback | Function | _optional_ A function to call after the curren
176176

177177
```
178178
this.demoTest = function (browser) {
179-
browser.navigate('.myLink');
179+
browser.clickAndWaitUntilMobified('.myLink');
180180
};
181181
```
182182

0 commit comments

Comments
 (0)