switchToDefaultContent(driver)
switchToDefaultContent
Parameters:
Name | Type | Description |
---|---|---|
driver |
Object |
webdriver object of web browser. |
Example
Examples usage of switchToDefaultContent
switchToDefaultContent(driver).then(() => {
// It will set the current webPage Environment from another frame.
}).catch((error) => {
// handle error
});