tlc-core-automation-framework-v3-wdio-v9
Version:
Background: - We are following multi-layer automation framework architecture using webdriver.io + cucumber + typescript This core framework has been implemented with generic utility functions and cucumber steps, which can be easily consumed by another fra
10 lines (8 loc) • 378 B
text/typescript
import logger from "../../reporting-helpers/logger";
import {browser, $, $$, expect} from '@wdio/globals'
export default async function () {
const lastWindowHandle = (await browser.getWindowHandles()).slice(-1)[0];
await browser.switchToWindow(lastWindowHandle);
logger.info(`Switching to last opened window`)
logger.info(`Window id : ${lastWindowHandle}`);
};