RepoItemInfo.exists() stops finding after browser restarts

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
fimo420
Posts: 55
Joined: Wed Jun 20, 2012 9:49 am

RepoItemInfo.exists() stops finding after browser restarts

Post by fimo420 » Wed Nov 27, 2013 9:25 am

Hi

I've noticed one thing that when i try to do a repoiteminfo.exists() after a browser restart during the test it stops working.
Meaning that even though the item is existing and is visible it fails to find the item.
I've disabled the cache property for the root folder in my repository file, but still i get this issue.

Anyone have same issues? or know the solution for the problem?

Br,
Feroz

Swisside
Posts: 92
Joined: Thu Oct 10, 2013 10:40 am

Re: RepoItemInfo.exists() stops finding after browser restarts

Post by Swisside » Wed Nov 27, 2013 10:06 am

Hello !

It would be easier to help you if you can upload a snapshot of your repository !



Regards
A simple thank you always does wonders !

fimo420
Posts: 55
Joined: Wed Jun 20, 2012 9:49 am

Re: RepoItemInfo.exists() stops finding after browser restarts

Post by fimo420 » Wed Nov 27, 2013 10:31 am

Hi,

No sure if this is what you wanted but here is the snapshot of the item in question.
You do not have the required permissions to view the files attached to this post.

Swisside
Posts: 92
Joined: Thu Oct 10, 2013 10:40 am

Re: RepoItemInfo.exists() stops finding after browser restarts

Post by Swisside » Wed Nov 27, 2013 11:25 am

Thanks !


Are you using this path ?
/dom[@domain='dev-gpiweb-i001.sirius.local']//div[#'main']//span[@title~'^2013\ BM\ N\ Am\ EQ\ BLENDED\ R']
A simple thank you always does wonders !

fimo420
Posts: 55
Joined: Wed Jun 20, 2012 9:49 am

Re: RepoItemInfo.exists() stops finding after browser restarts

Post by fimo420 » Wed Nov 27, 2013 12:15 pm

Hi again,

I've tried both absolutepath and path same behaviour.
.//div[#'main']//span[@title~'.*']
or
/dom[@domain='dev-gpiweb-i001.sirius.local']//div[#'main']//span[@title~'.*']

on the repo item but same behaviour

Swisside
Posts: 92
Joined: Thu Oct 10, 2013 10:40 am

Re: RepoItemInfo.exists() stops finding after browser restarts

Post by Swisside » Wed Nov 27, 2013 1:07 pm

When I use the following path :

/dom[@domain='dev-gpiweb-i001.sirius.local']//div[#'main']//span[@title~'.*']

Ranorex Spy finds 3 elements which might be the reason it is not working when you restart the browser.


With the path (although it might not be a trustworthy path)

.//div[#'main']//span[@class='view-title ng-binding']

Only one item is found. Can you try with this one and tell me if it works.



Regards
A simple thank you always does wonders !

fimo420
Posts: 55
Joined: Wed Jun 20, 2012 9:49 am

Re: RepoItemInfo.exists() stops finding after browser restarts

Post by fimo420 » Wed Nov 27, 2013 1:32 pm

Hi,

Yeh you are right that /dom[@domain='dev-gpiweb-i001.sirius.local']//div[#'main']//span[@title~'.*'] shows 3 elements.
But if use //div[#'main']//span[@title~'.*'] from ranorex studio it only shows 1.

Secondly, my main problem here is that when i do repoiteminfo.exists() or validate exist() with the rxpath i get false after a browser restart, even though the item is existing on screen and is visible.

So i'm confused to why its giving me false, i've tried to add more delay and etc... but didnt help.

Swisside
Posts: 92
Joined: Thu Oct 10, 2013 10:40 am

Re: RepoItemInfo.exists() stops finding after browser restarts

Post by Swisside » Wed Nov 27, 2013 1:44 pm

Hi again,

It's really strange.

The best thing you could do to get an answer is to provide a sample of your AUT to the support ([email protected]) because it's quite hard to help you without being able to reproduce your issue :D


Regards


Swiss
A simple thank you always does wonders !