public interface BrowserHaveExpectations
About the ibello expectation engine, see hu.ibello.expect.
| Modifier and Type | Method and Description |
|---|---|
void |
url(Pattern pattern)
Runs an expectation which successes when the current URL matches the given regular
expression.
|
void |
url(String url)
Runs an expectation which successes when the current URL matches a pattern.
|
void url(String url)
BrowserExpectationBuilder.toNotHave(), then the outcome of the expectation is
the opposite: if the current URL matches the pattern, then it will fail.
The argument may or may not contain a protocol. If there is no protocol in it,
then the pattern will match http and https protocols
in the current URL.
The argument can be a relative URL, starting with /. In this case,
http and https protocols, any host and any port in the current URL
will be matched by the pattern.
The argument may contain * and ? wildchars.
* means any path element, ? means any character (except
/). The double asterisk (**) means any characters
(including /).
If the ibello configuration contains the ibello.url.base property,
then it's value will override the protocol, host and port in the argument.
url - URL or URL patternvoid url(Pattern pattern)
BrowserExpectationBuilder.toNotHave(), then the outcome of the expectation is
the opposite: if the current URL matches the pattern, then it will fail.pattern - a regular expressionCreated by Kornél Simon, 2022