dontSeeLink
Verifies that a link with the given text does not exist on the current page.
Can also take an optional url parameter. If provided, it verifies the link found does not have the given url.
Arguments
| Name |
Type |
Required |
Default |
Description |
| text |
string |
true |
|
The text of the link that should not be found. |
| url |
string |
false |
|
The url that should not be found. |
Examples
it( "can verify a link doesn't exist", function() {
this.visit( "/" )
.dontSeeLink( "Administrator" );
} );
it( "can verify a link with a specific url doesn't exist", function() {
this.visit( "/" )
.dontSeeLink( "Contact Us", "/admin" );
} );