DevExpress / testcafe

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

Cannot run tests in the Private mode in Firefox #1675

Closed VasilyStrelyaev closed 3 years ago

VasilyStrelyaev commented 7 years ago

Are you requesting a feature or reporting a bug?

Bug

What is the current behavior?

When trying to launch Firefox with a Private mode flag, it opens two windows: one regular and one private. And tests run in the regular window.

What is the expected behavior?

One window should be opened and, more important, test should run in the Private window.

How would you reproduce the current behavior (if this is a bug)?

testcafe "firefox -private-window" tests/test.js

Provide the test code and the tested page URL (if applicable)

n/a

Specify your

oliversturm commented 7 years ago

This happens the same way on my system. I'm passing --private-window (double dash), but the behavior is the same.

GrafDa commented 5 years ago

Still not working.

Operating system: Windows 10 testcafe version: 1.4.3 node.js: 12.2.0

github-actions[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had any activity for a long period. It will be closed and archived if no further activity occurs. However, we may return to this issue in the future. If it still affects you or you have any additional information regarding it, please leave a comment and we will keep it open.

github-actions[bot] commented 3 years ago

We're closing this issue after a prolonged period of inactivity. If it still affects you, please create a new issue with up-to-date information. Thank you.

Vitalii4as commented 1 month ago

Same problem

Ubuntu 24.04 testcafe 3.6.2 node.js 20.14.0

PavelMor25 commented 1 month ago

Hello @Vitalii4as,

Could you please clarify why it's necessary for you to run the test in Private mode?

Vitalii4as commented 3 weeks ago

Hi @PavelMor25. Our application supports validation of license key in the browser, some license information is stored on the client side in local storage. The local storage is cleared when the incognito window is closed. So, we show a warning message to the user when he/she tries to validate license key in incognito mode. We want to test that such a warning is shown and that we can detect that the user uses an incognito window. It works fine in chrome and edge but in firefox I get the behavior described in this issue.

PavelMor25 commented 2 weeks ago

@Vitalii4as, Could you please share more details on how the browser is being checked for incognito mode?

Vitalii4as commented 1 week ago

@PavelMor25 Sorry, not sure what you mean. We use this library to detect whether the incognito window is used. It works fine for our use cases. But I'm not sure how it can be related to this issue.

PavelMor25 commented 20 hours ago

@Vitalii4as, The issue you're facing is quite complex and represents a less popular use case. Unfortunately, we won't be able to take it on at this time as our team is currently focused on other priorities. We appreciate your understanding, and we’re always here to assist with any other questions or challenges you may encounter.