Optional
abilityOptional
callmake the Question check for the negative.
new Screen instance
actor.asks(
Screen.does.not.haveURL("https://example.com")
);
Static
doesStatic
ofVerifies if the page has URL.
the screenshot name.
Optional
options: { the timeout in milliseconds.
Optional
timeout?: numberthis Screen instance
simple call with just locator
Screen.toHaveScreenshot('example.png');
with options
Screen.not.toHaveScreenshot(
'example.png',
{ timeout: 1000 }
);
Verifies if the page has URL.
Optional
options: { the timeout in milliseconds.
Optional
timeout?: numberthis Screen instance
simple call with just locator
Screen.toHaveTitle('Title');
with options
Screen.not.toHaveTitle(
'Title',
{ timeout: 1000 }
);
Verifies if the page has URL.
the expected URL.
Optional
options: { the timeout in milliseconds.
Optional
timeout?: numberthis Screen instance
simple call with just locator
Screen.toHaveUrl('https://www.example.com');
with options
Screen.not.toHaveUrl('https://www.example.com', { timeout: 1000 });
Generated using TypeDoc
Get a specified state for page. A mode operator must be prepended.