webdriverio-automation
Version:
WebdriverIO-Automation android ios project
17 lines (13 loc) • 335 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = switchToParentFrame;
async function switchToParentFrame() {
const page = this.getPageHandle(true);
if (typeof page.parentFrame !== 'function') {
return null;
}
this.currentFrame = await page.parentFrame();
return null;
}