* Creates a condition that will wait for the current page's url to contain * the given substring. * * @param {string} substrUrl The substring that should be present in the current * URL. * @return {!Condition } The new condition.
(substrUrl)
| 198 | * @return {!Condition<boolean>} The new condition. |
| 199 | */ |
| 200 | function urlContains(substrUrl) { |
| 201 | return new Condition('for URL to contain ' + JSON.stringify(substrUrl), function (driver) { |
| 202 | return driver.getCurrentUrl().then(function (url) { |
| 203 | return url && url.includes(substrUrl) |
| 204 | }) |
| 205 | }) |
| 206 | } |
| 207 | |
| 208 | /** |
| 209 | * Creates a condition that will wait for the current page's url to match the |
nothing calls this directly
no test coverage detected