question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Page with iframe throws error on TestCafe 1.17.0

See original GitHub issue

What is your Scenario?

TestCafe 1.14.2: When trying to open page on Jira Cloud with iframe everything works fine: Zrzut ekranu 2021-11-9 o 10 11 13 TestCafe 1.17.0: When trying to open page on Jira Cloud with iframe it throws error Zrzut ekranu 2021-11-9 o 10 11 42

This problem appears on Jira Cloud.

What is the Current behavior?

On TestCafe 1.17.0 I receive error when navigating to page with iframe

What is the Expected behavior?

I should not receive error when accessing page with iframe (as it is on TestCafe 1.14.2)

What is your public website URL? (or attach your complete example)

My test environment: https://testcafe-example.atlassian.net

What is your TestCafe test code?

import { Selector } from 'testcafe';

fixture('TestCafe - bug on TestCafe 1.17.0').page(
    'https://testcafe-example.atlassian.net/',
);

test.meta({ key: 'testcafe' })(`Problem with iframe`, async (t) => {
    await t
        .click('form#form-login input#username')
        .typeText(
            'form#form-login input#username',
            'qadeviniti+testcafe@gmail.com',
        )
        .click('form#form-login button#login-submit')
        .typeText('input#password', 'testcafe123!')
        .click('form#form-login button#login-submit');
    await t
        .click('span[aria-label="Settings"]')
        .click('[href$="source=side_nav_find_new_addons"]');
    await t.click('[href$="rtm__get-started"]');
    await t
        .switchToIframe('iframe')
        .expect(Selector('[data-testid="Get-Started-select"]').visible)
        .ok();
});

Your complete configuration file

No response

Your complete test report

No response

Screenshots

No response

Steps to Reproduce

  1. Ensure you have TestCafe 1.17.0 installed
  2. Login to Jira Cloud
  3. Navigate to page with iframe, for example page from app

TestCafe version

1.17.0

Node.js version

No response

Command-line arguments

chrome -e test.ts

Browser name(s) and version(s)

does not matter

Platform(s) and version(s)

No response

Other

No response

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:9

github_iconTop GitHub Comments

1reaction
aleks-procommented, Dec 2, 2021

Hello @milan-easykad,

There are no updates yet. Once we have any, we will post them here.

0reactions
github-actions[bot]commented, Dec 23, 2022

This issue was automatically closed because there was no response to our request for more information from the original author. Currently, we don’t have enough information to take action. Please reach out to us if you find the necessary information and are able to share it. We are also eager to know if you resolved the issue on your own and can share your findings with everyone.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Research regression in iframe handling since v1.14 · Issue #7108 ...
Page with iframe throws error on TestCafe 1.17.0 #6681 · It's taking a long time to load the iframe and causes test to...
Read more >
testcafe/CHANGELOG.md - UNPKG
116, * TestCafe now throws a meaningful error if an assertion method is missing ([#1063](https://github.com/DevExpress/testcafe/issues/1063)).
Read more >
Interact With the Page | Basic Guides | Guides | Docs - TestCafe
Navigate; Type Text; Select Text; Hover; Drag Elements; Upload Files; Take Screenshot; Work with iframes; Handle Native Dialogs; Resize Window; Wait.
Read more >
testcafe: Versions - Openbase
TestCafe throws the "TypeError: Illegal invocation" error when the front-end code passes a number value to the Element.insertAdjacentText method (#7352). 2.1.0- ...
Read more >
How does testcafe decide an iframe has loaded?
The first step is getting a selector with an iframe, ... Could you share a full test example that illustrates this error?
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found