I want to click element inside the iframe. I would like to know the current iframe context or How many iframe present before switching to any other iframe. How to check current iframe context in WDIO[7]?
I have tried below code.
await $('.framed_view').waitForDisplayed({ timeout: 500000 })
console.log('current context:'+ await browser.getContext());
await browser.switchToFrame(1);
Which WDIO api supposed to use to get current context information like selenium webdriver?