DevExpress / testcafe

A Node.js tool to automate end-to-end web testing.
https://testcafe.io
MIT License
9.83k stars 673 forks source link

Element Interaction Issues with TestCafe RC1 3.7.0 and Chrome 130 #8308

Closed RafaelBeltranClip closed 4 weeks ago

RafaelBeltranClip commented 1 month ago

What is your Scenario?

I have seen multiple tickets related to errors caused by the latest stable version of Chrome (130), which I am also experiencing with TestCafe 3.6.2. In response, I upgraded to TestCafe RC1 3.7.0, which is supposed to address these issues.

However, it appears that Google Chrome is unable to interact with elements—specifically, it cannot type into or click on any elements. In contrast, switching to Firefox allows the tests to run without any issues.

Previously, everything was functioning correctly with TestCafe 3.6.2 and the earlier version of Chrome.

Note: The selectors may change depending on the language used in your machine.

What is the Current behavior?

Chrome is unable to interact with elements

What is the Expected behavior?

I should be able to interact with elements.

What is the public URL of the test page? (attach your complete example)

https://www.google.com/

What is your TestCafe test code?

import { Selector } from 'testcafe';

fixture `Bug Report: Form Submission Issue`
    .page `https://www.google.com/`; 

test('Search anything test', async t => {

    // Example selectors
    const searchInput = Selector('textarea[title="Buscar"]');
    const firstRecommendation = Selector('ul li').nth(0);

    await t
        .typeText(searchInput, 'find anything')
        .click(firstRecommendation);
});

Your complete configuration file

No response

Your complete test report

{
  "devDependencies": {
    "testcafe": "^3.7.0-rc.1"
  },
  "scripts": {
    "chrome": "testcafe chrome testcafe.js",
    "chrome:headless": "testcafe chrome:headless testcafe.js",
    "firefox": "testcafe firefox testcafe.js"
  }
}

Screenshots

No response

Steps to Reproduce

  1. npm run firefox
  2. npm run chrome

see that firefox runs fine and chrome fails. using the scripts in the package.json

TestCafe version

3.7.0 rc1

Node.js version

No response

Command-line arguments

npm run chrome

Browser name(s) and version(s)

Chrome 130

Platform(s) and version(s)

No response

Other

No response

thomas-jakemeyn commented 1 month ago

I am facing the same problem when running my tests locally. Nothing happens when clicking on checkboxes, buttons, etc.

ManuelRauber commented 1 month ago

Same issue here. As soon as our build agents got a new image containing Chrome 130, all tests starting to fail.

thomas-jakemeyn commented 1 month ago

Note that the problem does not seem to affect Edge 130 (which is also Chromium-based).

yasinkocak commented 1 month ago

Same issue with Chrome 130, we move to Edge as workaround, but our application is built for Chrome

github-actions[bot] commented 1 month ago

We appreciate you taking the time to share information about this issue. We reproduced the bug and added this ticket to our internal task queue. We'll update this thread once we have news.

kkapur5 commented 1 month ago

The new release you have pushed out is that for TestCafe Studio or open source? Where can I download new version of the Testcafe Studio? Thanks. The website is still pointing to Testcafe Studio 2.0. https://www.devexpress.com/support/versions.xml#supported

csw1701 commented 1 month ago

I can confirm the above behaviour, however there is a workaround to get tests running again for 3.7.0-rc.1.

kkapur5 commented 1 month ago

csw1701 - are you using studio or open source test cafe?

csw1701 commented 1 month ago

csw1701 - are you using studio or open source test cafe?

I'm using open source testcafe

rupesh1395 commented 1 month ago

I am getting also same issue with Testcafe version 3.5.0 and tried with latest version 3.7.0 and 3.7.0-rc.1 also. I am stuck to run our daily automated test case. Could you provide any solution? image

ksplache1 commented 1 month ago

3.7.0-rc.2 fixes this issue for my Test Cafe use cases. The element interactions seem to behave the same as with 3.6.2.

Bayheck commented 1 month ago

Hello,

We have released TestCafe 3.7.0-rc.2, which addresses this issue. Please try it and let us know if the issue is gone.

rupesh1395 commented 1 month ago

3.7.0-rc.2 fixes this issue for my Test Cafe use cases. The element interactions seem to behave the same as with 3.6.2.

Thank you @Bayheck

3.7.0-rc.2 fixes this issue for my Test Cafe use cases. The element interactions seem to behave the same as with 3.6.2.

Thank you, It worked for me

thomas-jakemeyn commented 1 month ago

3.7.0-rc.2 fixes the element interaction problem for me as well.

Thank you TestCafe team!

RafaelBeltranClip commented 1 month ago

The fix seems to be working fine. However, I'm currently facing a dependency issue where certain packages require TestCafe to be a version "<1.0.0", and since RC2 is "3.7.0-rc.2", they are failing. Do we have an estimated release date for the official 3.7.0?

thanks in advance ! @Bayheck

Bayheck commented 4 weeks ago

Hello, At present, we are not ready to give any ETA.

Please stay tuned.

Bayheck commented 4 weeks ago

I will close this issue as it was fixed in the PR: https://github.com/DevExpress/testcafe/pull/8315