Taiko
Documentation

Home / API Reference

reload

Reloads the page.

Examples

await reload('https://google.com')
await reload('https://google.com', { navigationTimeout: 10000 })

Parameters


url

DEPRECATED URL to reload


options

options.waitForNavigation boolean

Wait for navigation after the reload. Default navigation timeout is 30 seconds, to override pass { navigationTimeout: 10000 } in options parameter.

Default value
true

options.waitForEvents

Events available to wait for ['DOMContentLoaded', 'loadEventFired', 'networkAlmostIdle', 'networkIdle', 'firstPaint', 'firstContentfulPaint', 'firstMeaningfulPaint']

Default value
['firstMeaningfulPaint']

options.navigationTimeout number

Navigation timeout value in milliseconds for navigation after click.

Default value
30000

options.waitForStart number

time to wait for navigation to start. Accepts value in milliseconds.

Default value
100

options.ignoreCache boolean

Ignore Cache on reload - Default to false

Default value
false

Returns

Promise