MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / titleIs

Function titleIs

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

* Creates a condition that will wait for the current page's title to match the * given value. * * @param {string} title The expected page title. * @return {!Condition } The new condition.

(title)

Source from the content-addressed store, hash-verified

134 * @return {!Condition<boolean>} The new condition.
135 */
136function titleIs(title) {
137 return new Condition('for title to be ' + JSON.stringify(title), function (driver) {
138 return driver.getTitle().then(function (t) {
139 return t === title
140 })
141 })
142}
143
144/**
145 * Creates a condition that will wait for the current page's title to contain

Callers

nothing calls this directly

Calls 1

getTitleMethod · 0.65

Tested by

no test coverage detected