CodeceptJS
CodeceptJS copied to clipboard
switchTo Protractor
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!
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.
Looks like this function has already been implemented https://codecept.io/helpers/Protractor/#switchto