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
We tried enable native automation mode for existing tests, but unfortunately, we encountered some serious issues.
So far, we have identified at least two problems:
The test hangs after the navigateTo function is called.
The test hangs after the eval function is called (e.g., when performing a page reload).
We have tried several different versions of Chrome and Chromium, but the problems appear to be independent of the browser version.
We were able to replicate the issues on several different websites. The following demo reproduces the issue using the Google Finance page.
The test works perfectly fine when native automation mode is disabled.
What is the Current behavior?
Test hangs after navigateTo or eval is called.
What is the Expected behavior?
Test should not hang (like when ative automation mode is disabled).
What is the public URL of the test page? (attach your complete example)
import{Selector}from'testcafe';fixture('Native automation issues demo').page('https://www.google.com/finance/quote/GOOGL:NASDAQ');test('Example',asynct=>{console.log(`Native automation: ${(t.browser.nativeAutomation)}`);constbtn=Selector('button').withText('Accept all');awaitt.click(btn);console.log('## 1st wait ##');awaitt.wait(2000);console.log('## Navigate to new URL ##');awaitt.navigateTo('https://www.google.com/finance/quote/AAPL:NASDAQ');// Test will hang hereconsole.log('## 2nd wait ##');awaitt.wait(2000);console.log('## Reload page ##');awaitt.eval(()=>location.reload(true));// Test will hang hereconsole.log('## End of test ##');});
Your complete configuration file
No response
Your complete test report
No response
Screenshots
No response
Steps to Reproduce
Run code from the repository.
TestCafe version
3.7.0 (we've tried also older version with the same results)
Node.js version
v22.11.0
Command-line arguments
See repository.
Browser name(s) and version(s)
Chrome 131.0.6778.109 (or older)
Platform(s) and version(s)
macOS 15 and Windows 11
Other
No response
The text was updated successfully, but these errors were encountered:
Yes, the suggested "beforeEach" solution fixes the problem! Thanks a lot for your help!
BTW, shall we move this solution directly into the framework so we won't need to explicitly call this code at the test level?
What is your Scenario?
We tried enable native automation mode for existing tests, but unfortunately, we encountered some serious issues.
So far, we have identified at least two problems:
navigateTo
function is called.eval
function is called (e.g., when performing a page reload).We have tried several different versions of Chrome and Chromium, but the problems appear to be independent of the browser version.
We were able to replicate the issues on several different websites. The following demo reproduces the issue using the Google Finance page.
The test works perfectly fine when native automation mode is disabled.
What is the Current behavior?
Test hangs after
navigateTo
oreval
is called.What is the Expected behavior?
Test should not hang (like when ative automation mode is disabled).
What is the public URL of the test page? (attach your complete example)
https://github.com/arkadiusz-lindar/testcafe-issues-demo
What is your TestCafe test code?
Your complete configuration file
No response
Your complete test report
No response
Screenshots
No response
Steps to Reproduce
Run code from the repository.
TestCafe version
3.7.0 (we've tried also older version with the same results)
Node.js version
v22.11.0
Command-line arguments
See repository.
Browser name(s) and version(s)
Chrome 131.0.6778.109 (or older)
Platform(s) and version(s)
macOS 15 and Windows 11
Other
No response
The text was updated successfully, but these errors were encountered: