Skip to content
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

TestCafe v2.5.0 Native-automation #7656

Closed
robogo83 opened this issue Apr 25, 2023 · 1 comment
Closed

TestCafe v2.5.0 Native-automation #7656

robogo83 opened this issue Apr 25, 2023 · 1 comment
Labels
TYPE: bug The described behavior is considered as wrong (bug).

Comments

@robogo83
Copy link

What is your Scenario?

I've updated TestCafe from 2.4.0 to 2.5.0 to try the new native-automation feature. I am using chrome as my browser and my test includes opening multiple windows.

What is the Current behavior?

The initial window is loaded as expected but when the new window is supposed to be open the chrome browser blocks it with a message saying that pop-up windows are blocked. This behaviour persists even after allowing pop-up windows in Chrome browser.
The test runs as expected without --native-automation flag
The question is, does it mean that running tests in multiple windows with native-automation is not allowed anymore?

What is the Expected behavior?

New window is not being blocked by the browser when using --native-automation flag

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

test('multiple windows', async (t) => {
 await t.openWindow('https://www.google.com/')
await t.openWindow('https://testcafe.io/documentation/402635/guides/overview/getting-started')
})

What is your TestCafe test code?

I cannot provide the test code but I would like to know if this is a general issue. I believe if you reproduce a scenario with multiple windows you should get a similar outcome unless there's something in my local setting that is blocking the pop-up windows.

Your complete configuration file

No response

Your complete test report

No response

Screenshots

No response

Steps to Reproduce

  1. Create a test with multiple windows opened using chrome as a browser and --native-automation flag

TestCafe version

2.5.0

Node.js version

v18.14.0

Command-line arguments

chrome --native-automation --reporter html:./reports/reports.html

Browser name(s) and version(s)

Chrome 112.0.5615.121

Platform(s) and version(s)

Windows 10

Other

No response

@robogo83 robogo83 added the TYPE: bug The described behavior is considered as wrong (bug). label Apr 25, 2023
@need-response-app need-response-app bot added the STATE: Need response An issue that requires a response or attention from the team. label Apr 25, 2023
@Dmitry-Ostashev
Copy link
Contributor

Hello @robogo83 ,

Currently, TestCafe does not allow opening multiple windows in native-automation mode. Please refer to the following issue to track our progress with this feature:: #7661.

@need-response-app need-response-app bot removed the STATE: Need response An issue that requires a response or attention from the team. label Apr 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
TYPE: bug The described behavior is considered as wrong (bug).
Projects
None yet
Development

No branches or pull requests

2 participants