Optional
abilityOptional
callStatic
forWait for a specific event on page.
the event on browser to wait for.
Optional
options: WaitForEventActionOptions<T>new Wait instance
simple call
Wait.forEvent<Page>('page');
Static
forWait for a specific event on page.
the event on page to wait for.
Optional
options: WaitForEventActionOptions<T>new Wait instance
simple call
Wait.forEventOnPage<Download>('download');
Static
forWait for a specific status of the page.
either 'load', 'domcontentloaded' or 'networkidle'
Optional
options: WaitForLoadStateActionOptionsnew Wait instance
Wait.forLoadState('networkidle');
Static
forWait for a specific locator to exist.
the locator.
Optional
options: WaitForLocatorActionOptions(optional) advanced locator lookup options.
new Wait instance
simple call with just locator
Wait.forLocator('myLocator');
with options
Wait.forLocator(
'myLocator', {
hasText: 'myText',
subLocator: ['mySubLocator', { hasText: 'anotherText' } ]
}
);
Static
forWait for the page specified url.
url to wait for
Optional
options: WaitForUrlActionOptionsnew Wait instance
Wait.forUrl('networkidle');
Generated using TypeDoc
Wait for loading state or a locator or url.