-
Notifications
You must be signed in to change notification settings - Fork 674
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
Add the capability to perform testing in multiple browser windows #912
Comments
Is the Note that this may need to be two profiles rather than two windows. You may even want to test multiple windows of multiple profiles.
|
Hi Jake.
This is exactly what this function do, it's a part of upcoming Roles functionality. Update: I've forgot that we decided to use |
Is this still on the list? Multiple browser window support would be awesome for things like auth0/google authentication. |
I really like testcafe, but this is something I would need to successfully test my application. Our application opens multiple windows and uses them to pass data around. I would also be curious to know the timeline for this particular feature as I'm still in the process of selecting a UI automation framework. |
Hi @skogman and @Lukukas |
Hi @SergeyShurygin Unfortunately am not able to reproduce the same behavior in a simple project for illustration. |
Hi @presian
It looks like a TestCafe problem. Can your share your web application to investigate the problem?
I created a suggestion for this case - #5267. |
Hi @miherlosev Thank you for the created suggestion. It will be very helpful to me. |
Hello, If you can reproduce this issue in a small project, please share it with us. It will help us to get more details about your your scenario. Also, you can share your project (or some URL with credentials) via support@devexpress.com. In this case, please note that our policy prevents us from accessing a customer’s internal resources without prior written approval from the entity that owns the server/web resource. If you want us to research the problem further, we’ll need access to the server/web resource. Please ask the website owner to send us (support@devexpress.com) a written confirmation. It must permit DevExpress personnel to remotely access the website and its internal resources for research/testing/and debugging purposes. |
Hi @Farfurix Unfortunately, the organization that I am working for won't allow access to their products from outside the organization. I have some progress though. I found out that the newly opened window becomes a current window but its id is just the same as the parent window. That way the parent window is no more accessible. I played with some client js (t.eval) and it turned out that after the second window is opened window.location.href returns the child's window URL. Through the window.opener I get the parent window. But paretnWindow.location.href returns the full URL like http://172.16.25.238:62629/PW!IBHA0M*OrvxTsefh/{the real paretnWindowUrl}. But at the same time t.maximizeWindow() doesn't work on the child window. I think that for whatever reason the child window hijacks the parent context but not entirely. I know that this probably is not enough to help you guys but this all that I have. |
@presian, Thank you for the information. We will take it into account. |
Hi all,
and immediately after that, the URL of the newly opened window is changed like following:
As a result, the child window has the same id as the parent. As far as I understood this code guarantees that the new window will be a new tab instead of a separate window. I found the following comment above that piece of code: I have made a repository with a simple Angular project that mimics that behavior: |
Hello @presian, |
Folks We are happy to announce that we released the mentioned feature ('Add the capability to perform testing in multiple browser windows') in |
Are you requesting a feature or reporting a bug?
Feature
What is the current behavior?
You can run test only in single window of the browser
What is the expected behavior?
It's useful to run test in multiple windows to simultaneously observe results from different users perspective. E.g. we test online chat or online game. The idea is to spawn new windows in test and switch test context to that window (It also we'll play well with Roles feature):
The syntax is still a subject for bikeshedding. \cc @DevExpress/testcafe
The text was updated successfully, but these errors were encountered: