Ask a Question

How to run tests in multiple browser sessions

ShahZaib
Contributor

How to run tests in multiple browser sessions

Hi,

I want to run a test on multiple sessions of chrome

For example

I want to login into a website using user 1 in chrome cognito sessions

Then I have to launch chrome in a incognito session and log in to the same website using the user 2

When i try to access the session in the incognito mode i can still see the focus is shifted towards the previous sessions i.e. the one in the cognito mode

How can i shift my focus from cognito to incognito mode and then back

ShahZaib_0-1677743653620.png

 

5 REPLIES 5
rraghvani
Champion Level 2

You will have to use unique properties that identifies the two browser windows, this will allow TestComplete to distinguish between the two.

ShahZaib
Contributor

i have mapped the unique identifier but it does not find it because it is trying to look into another window

any way to switch focus

rraghvani
Champion Level 2

I just realised you are running in Incognito mode. Controls are not exposed to TestComplete. 

rraghvani_0-1677754176745.png

When running Edge in InPrivate, controls are exposed. I wonder if this is a bug or it's not supported?

 

Might be worth raising this issue via TestComplete: New Support Request

ShahZaib
Contributor

on my side, I can see forms and chrome sessions. chrome sessions report the same image but 'form' reports differently. I wonder what they are for? 

ShahZaib_0-1677762092952.png

 

rraghvani
Champion Level 2

TC is able to recognise the objects in Chrome Incognito mode

rraghvani_0-1677776405519.png

If you look at the properties between the two windows, i.e. Form, then you can use the Index property to distinguish between the two.

cancel
Showing results for 
Search instead for 
Did you mean: