* Creates a condition that will wait for the current page's url to match the * given value. * * @param {string} url The expected page url. * @return {!Condition } The new condition.
(url)
| 182 | * @return {!Condition<boolean>} The new condition. |
| 183 | */ |
| 184 | function urlIs(url) { |
| 185 | return new Condition('for URL to be ' + JSON.stringify(url), function (driver) { |
| 186 | return driver.getCurrentUrl().then(function (u) { |
| 187 | return u === url |
| 188 | }) |
| 189 | }) |
| 190 | } |
| 191 | |
| 192 | /** |
| 193 | * Creates a condition that will wait for the current page's url to contain |
nothing calls this directly
no test coverage detected