I believe this is a bug but it could be viewed as a feature request. Depends on the intended original implementation.
The web page I've attempting to manipulate has a frameset with three frames. I need to activate the middle one and am hence trying to use switchToIFrame such as this:
await t.switchToIframe(Selector('frame').nth(1))
I get an error stating"The action element is expected to be an
Activate the frame in the same manner an iframe would be activated
Create a test page with a frameset and attempt to use your API on it.
Hi @FrankV01,
frameset is an obsolete feature. TestCafe has limited framesets support but we can't guarantee that all cases work properly. We will check whether we can fix switching to frame via the switchToIframe or not and will notify you.
First, thank you. Second, I do know it's an obsolete feature. Its use in the tech stack I'm working on is beyond my control and despite requests to do so, removal isn't slated. I'm dealing with it best I can. Again, I appreciate any attention you can give this matter.
please suggest if we can find elements with in Frame like this way (#myFrame #myLocator) instead of switching this by method t.switchToFrame()
Hi @guptaakhil,
The switchToFrame() function is the only way to work with elements inside iframes in TestCafe tests.
It will cost too much for us to support this obsolete browser feature. So, we are not going to implement this in the near future.
This thread has been automatically locked since it is closed and there has not been any recent activity. Please open a new issue for related bugs or feature requests. We recommend you ask TestCafe API, usage and configuration inquiries on StackOverflow.