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