CodeceptJS icon indicating copy to clipboard operation
CodeceptJS copied to clipboard

switchTo Protractor

Open Jeroenhuisjes opened this issue 9 years ago • 2 comments

The Protractor helper has no switchTo function when using the codecept api.

WebdriverIO has that function. Is it poissible to get this function for the Protractor helper in the next version?

Thanks!

Jeroenhuisjes avatar Jan 17 '17 13:01 Jeroenhuisjes

Hi @Jeroenhuisjes you can try use a custom helper, some like that: switchToIframeCustom() { this.helpers['Protractor'].browser.switchTo().frame(element(by.tagName('iframe')).getWebElement()); } Works for me.

BrunoExterckotter avatar Jan 31 '18 12:01 BrunoExterckotter

Looks like this function has already been implemented https://codecept.io/helpers/Protractor/#switchto

Nazanin1369 avatar Oct 23 '18 07:10 Nazanin1369