Actions can't be performed in iframe on fiddle.net
See original GitHub issueWhat is your Test Scenario?
I’m trying to record actions in a result iframe on fiddle.net after click on a Run
button
https://github.com/DevExpress/testcafe-studio/issues/2052
What is the Current behavior?
Error raises TestCafeDriver doesn't exist in the iframe
What is the Expected behavior?
I expect TestCafeDriver exists in the iframe
Steps to Reproduce:
The easiest way to reproduce is to run a following test:
import { Selector } from 'testcafe';
fixture `f`
.page `https://jsfiddle.net/`;
test('t', async t => {
await t
.debug() //resume after loading is complete
.click(Selector('#run'))
.debug() // resume after result iframe has a white background
.switchToIframe(Selector('[name="result"]'))
.click(Selector('body')); // error raises 'Content of the iframe in which the test is currently operating did not load.'
});
On the second debug
action you can check that TestCafeDriver instance doesn’t exist in iframe
Your Environment details:
- testcafe version: 0.23.3
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Embed script snippet not working as expected · Issue #732
Hi,. we came across this issue where copying the embed <script> string of a fiddle would not work when embedding it to an...
Read more >Can't write to iframe in FF or IE, only Chrome
When called in order, I imagine it would work properly in CHrome, but not in IE & FF. Judging by the jsfiddle result....
Read more >Button click on iframe
Create an iframe in verge and set the SRC to the html file you just created. Add your control buttons use the execute...
Read more >Player API not functional when explicit iframe tag (without ...
I can see that if you trigger player action from JS API player is not triggering PlayerStateChange event. You can't also read correct...
Read more >Setting up single-player tests before adding spinner
This code here I believe I put together from this post. https://jsfiddle.net/2vs7d95g/ function onPlayerReady(event) { const iframe = player.h; ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ve investigated this problem and figured out that a processed form action attribute has no iframe flag because there is no iframe with the ‘result’ name during a server processing.
Simplified server for reproducing
I could not reproduce the issue from the first post, so I closed this issue about ‘fiddle.net’. I created separate issues for other cases discussed in this ticket.