New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support multiple windows in native automation mode #7661
Comments
Thank you for opening this ticket - our team is looking for support of multiple windows in native mode too. Clicking links that open new pop out windows is something we need to cover, so we can't turn this on for every test yet. |
same or similar issue: The application under test is programmed to open a new window or tab when a button is clicked. We need support for this type of interaction in TestCafe, because the application under test cannot always be modified to open in the same window. |
The same problem. We have many tests with multiple windows, and native automation mode doesn't work with them. |
Are there any workarounds with this @aleks-pro ? Or maybe at least to exclude certain tests from using native automation? Thanks! |
Hi @Jgrabenbauer, You can create two separate test runs - in Native Automation mode and without it. Specify test paths with the glob pattern as follows: Test files. Use the Run tests with NA:
Run tests without NA:
You can do the same with configuration files or with a Runner object. Also, you can filter tests by metadata. |
I have to work around particular situations, removing the target attribute with clientFunction and then clicking the element.
Also, I had to use the "navigate()" function after getting the link from any attribute or API for those redirections that don't happen with an anchor tag and target attribute. |
We have the same issue - there is no workaround, 1 test is part of a larger group where we need to combine native and not native automation modes to avoid this bug Just to add - the issue happens when click on a link happens, which opens a new target window (tab). The step fails, and the report in json is not even created for us, this is not handled well. |
Hi @gforepsly, We supported the --disable-multiple-windows option in Native Automation mode, and it's already published in TestCafe 3.3.0-rc.1. Please test it. |
Is there an option to ignore popup window? I have an auto-closing popup, with proxy mode I just add a small t.wait, but in native mode Testcafe disable popup |
Could you elaborate on what you mean by popup window? Do you mean a real browser window or just some kind of DOM element with a fixed/absolute position? Please share a simple reproducible sample to demonstrate what kind of popup you have. |
I mean a real window that process authentication on remote system. I don't have access to the real code but it's something like the js below where instead of opening a website yahoo, it's open a auth.html page |
@tandreys |
Testcafe released a new version v3.5.0. |
I have a |
Hello, Multiple windows mode with native automation is still an experimental feature. |
I have a similar problem as @mx-bernhard. Any action unrelated the main window, i.e. if you open a new tab or window after clicking a button or resizing the browser window and then perform a validation in a same test, those actions are blocking all suite execution. It's a structural problem because if you have a test that performs any of these actions it completely freezes the execution and does not allow to launch any report. At the moment it's evident in local regression executions and in GitHub Actions executions |
Hello @juan-garces @mx-bernhard , |
What is your Scenario?
At present, TestCafe does not support multiple windows in native automation mode.
What are you suggesting?
Support multiple windows in native automation mode.
The text was updated successfully, but these errors were encountered: