docs: handle url change

This commit is contained in:
karishmas6
2024-06-08 23:03:26 +05:30
parent 0c0698ebb5
commit ed586fd3a7

View File

@@ -257,7 +257,14 @@ const onChangeUrl = async (url: string) => {
await handleWrapper(handleChangeUrl, url);
}
/**
* An url change event handler.
* Navigates the page to the given url and generates data for the workflow.
* @param generator - the workflow generator {@link Generator}
* @param page - the active page of the remote browser
* @param url - the new url of the page
* @category BrowserManagement
*/
const handleChangeUrl = async (generator: WorkflowGenerator, page: Page, url: string) => {
if (url) {
await generator.onChangeUrl(url, page);