MCPcopy Index your code
hub / github.com/SeleniumHQ/selenium / urlIs

Function urlIs

javascript/selenium-webdriver/lib/until.js:184–190  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

182 * @return {!Condition<boolean>} The new condition.
183 */
184function 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

Callers

nothing calls this directly

Calls 1

getCurrentUrlMethod · 0.65

Tested by

no test coverage detected