You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The command browser.switchToFrame() does not switch to iFrames on Microsoft Edge versions 16,17 and 18. The same command and code snippet (see To reproduce section) works on Chrome, FireFox, Safari and IE11.
npm run test:local Please ensure your browser driver is started npm run test:remote Please ensure your you have inserted your BrowserStack user and key in wdio.remote.conf.js
Once the simple test is run, there is an error launched at browser.switchToFrame(parentFrame) with the following message ERROR webdriver: Request failed due to no such frame: The specified frame was not found in the current frame or window.
Options 2
On Ms Edge -Preferably BrowserStack, but that shouldn't make any difference- run the command browser.switchToFrame(element) or browser.switchToFrame(element.elementId) and you have the same error described on option1
Expected behavior
The expected behaviour is the ability to switch into iFrame and be able to retrieve and locate elements inside it on MS Edge.
Additional context
Initially this question was asked in Gitter channel, and discussed with @christian-bromann today, and he recommended to create an issue here with more details.
Please note I also have checked this issue 3774 but it seems it's unrelated as the code I have shared on GitHub (See section above) works perfectly on all browsers except Edge
The text was updated successfully, but these errors were encountered:
I am not able to get this solution working for him. I tried using the class name directly on switchToFrame and still see the same issue The specified frame was not found in the current frame or window.. Just to understand you workaround solution correctly, should I give the classname or id directly in browser.switchToFrame(id or classname). Is that correct?
Update: this solution works for chrome, ie and edge. Does not work for safari
Environment :
package.json
Config of WebdriverIO
Describe the bug
The command browser.switchToFrame() does not switch to iFrames on Microsoft Edge versions 16,17 and 18. The same command and code snippet (see To reproduce section) works on Chrome, FireFox, Safari and IE11.
To Reproduce
I've set both :
npm run test:local
Please ensure your browser driver is startednpm run test:remote
Please ensure your you have inserted your BrowserStackuser
andkey
in wdio.remote.conf.jsOnce the simple test is run, there is an error launched at
browser.switchToFrame(parentFrame)
with the following messageERROR webdriver: Request failed due to no such frame: The specified frame was not found in the current frame or window.
On Ms Edge -Preferably BrowserStack, but that shouldn't make any difference- run the command
browser.switchToFrame(element)
orbrowser.switchToFrame(element.elementId)
and you have the same error described on option1Expected behavior
The expected behaviour is the ability to switch into iFrame and be able to retrieve and locate elements inside it on MS Edge.
Log
Console logs and wdio logs are shared here gist
Additional context
Initially this question was asked in Gitter channel, and discussed with @christian-bromann today, and he recommended to create an issue here with more details.
Please note I also have checked this issue 3774 but it seems it's unrelated as the code I have shared on GitHub (See section above) works perfectly on all browsers except Edge
The text was updated successfully, but these errors were encountered: