Can't identify 2nd tab in Chrome

Ask general questions here.
zoakes
Posts: 5
Joined: Wed Feb 08, 2017 5:56 pm

Can't identify 2nd tab in Chrome

Post by zoakes » Wed Feb 08, 2017 6:19 pm

Hello,

I'm trying to detect a 2nd tab in Chrome and Ranorex is having an issue trying to find the DOM when 2 tabs are open. However, it detects the tab if it is the only one open. These tests have worked previously with no issues. I am currently using version 6.2.0. Attached is a screenshot of the two tabs as well as a screen shot of the element. Any help is appreciated!
You do not have the required permissions to view the files attached to this post.

User avatar
qwertzu
Posts: 284
Joined: Wed Jan 25, 2017 11:08 am

Re: Can't identify 2nd tab in Chrome

Post by qwertzu » Thu Feb 09, 2017 2:58 pm

Hi zoakes,


What Version of Chrome are you using? Because there was a bug with a former version, which should be fixed with the extension 1.0.10.
So you could try to install Ranorex 6.2.1 and the newest version of Chrome.

I hope, this will help.

zoakes
Posts: 5
Joined: Wed Feb 08, 2017 5:56 pm

Re: Can't identify 2nd tab in Chrome

Post by zoakes » Thu Feb 09, 2017 5:08 pm

All good now, thanks! :D

zoakes
Posts: 5
Joined: Wed Feb 08, 2017 5:56 pm

Re: Can't identify 2nd tab in Chrome

Post by zoakes » Wed Feb 15, 2017 8:24 pm

Hello,

This fixed the problem temporarily but all my test that use a second browser tab are broken again with the same issue described above :( Are there any other suggestions to fix this issue permanently?

User avatar
qwertzu
Posts: 284
Joined: Wed Jan 25, 2017 11:08 am

Re: Can't identify 2nd tab in Chrome

Post by qwertzu » Fri Feb 17, 2017 1:24 pm

Hi,

Usually, it should work fine to test in different tabs.

Would it be possible for you to upload a Ranorex Snapshot?
This would make it easier to help you with your issue.

Have you already updated our Plugin for Chrome to version 1.0.10 and Ranorex Studio to version 6.2.1?

zoakes
Posts: 5
Joined: Wed Feb 08, 2017 5:56 pm

Re: Can't identify 2nd tab in Chrome

Post by zoakes » Fri Feb 17, 2017 5:08 pm

I have updated to the latest browser plugin and version of Ranorex. Attached is a Ranorex snapshot of the element when there is only 1 browser tab open. It finds the element just fine, however when a second tab is open, the test fails.

Thanks!!
You do not have the required permissions to view the files attached to this post.

Fergal
Certified Professional
Certified Professional
Posts: 455
Joined: Tue Feb 18, 2014 2:14 pm
Location: Co Louth, Ireland
Contact:

Re: Can't identify 2nd tab in Chrome

Post by Fergal » Thu Feb 23, 2017 5:34 pm

I've experienced the same issue - using the latest version of Ranorex and the latest version of Chrome.

Has there been any resolution?

Thanks!

zoakes
Posts: 5
Joined: Wed Feb 08, 2017 5:56 pm

Re: Can't identify 2nd tab in Chrome

Post by zoakes » Thu Feb 23, 2017 5:42 pm

After not using the tests for about a week I decided to revisit them and they started working again. I am unclear why these tests work one day but not the next. I have not changed any of the configurations or elements since the last tests.

Fergal
Certified Professional
Certified Professional
Posts: 455
Joined: Tue Feb 18, 2014 2:14 pm
Location: Co Louth, Ireland
Contact:

Re: Can't identify 2nd tab in Chrome

Post by Fergal » Thu Feb 23, 2017 5:49 pm

Thanks for your reply zoakes.

By way of example, the module below works fine when the Ranorex.com website is open in Chrome. However, it fails if a second tab is open in Chrome.

Image

McTurtle
Posts: 297
Joined: Thu Feb 23, 2017 10:37 am
Location: Benedikt, Slovenia

Re: Can't identify 2nd tab in Chrome

Post by McTurtle » Fri Feb 24, 2017 12:48 pm

Hello Fergal,

The path of the DOM in your case has 2 arguments, one is the URL and the 2nd is the visibility. In your repository you have for the DOM the argument @visible='True'. So it must be visible at the time you run the test in order to be identified.

If you are on another tab, it will not find this DOM.

Regards,

McTurtle

Fergal
Certified Professional
Certified Professional
Posts: 455
Joined: Tue Feb 18, 2014 2:14 pm
Location: Co Louth, Ireland
Contact:

Re: Can't identify 2nd tab in Chrome

Post by Fergal » Fri Feb 24, 2017 3:08 pm

Thanks McTurtle, I deliberately put in the "@visible='True'" to see if the module would work when the tab is visible - it doesn't. Unfortunately the module also fails when that "@visible='True'" is removed from the XPath and two tabs are open in Chrome.

With two tabs open:
Image

With one tab open:
Image

User avatar
qwertzu
Posts: 284
Joined: Wed Jan 25, 2017 11:08 am

Re: Can't identify 2nd tab in Chrome

Post by qwertzu » Mon Feb 27, 2017 2:01 pm

Hi Fergal,

Are you using 64 bit or 32 bit Chrome?
And which spy do you use? 64 or 32 bit?

Could you upload a Ranorex Snapshot?