e2ed
Version:
E2E testing framework over Playwright
13 lines (12 loc) • 514 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.switchToMainWindow = void 0;
const frameContext_1 = require("../context/frameContext");
const step_1 = require("../step");
/**
* Switches browsing context to the main window.
*/
const switchToMainWindow = () => (0, step_1.step)('Switch browsing context to the main window', () => {
(0, frameContext_1.clearFrameContext)();
}, { type: 5 /* LogEventType.InternalAction */ });
exports.switchToMainWindow = switchToMainWindow;