waitForURL(urlOrPredicate: "**/profile/**", options: { waitUntil: LOAD })
Returns true if the URL matches within the timeout and wait conditions.
Definition
Arguments
urlOrPredicate
String!
A URL string, glob pattern, or JavaScript predicate string to match against the page URL.
Example: "https://example.com/dashboard"
or "**/login?success=true"
options
WaitForOptions
Options for waiting, such as timeout and lifecycle event to wait for.
Returns
Boolean! TheBoolean
scalar type represents true
or false
.