Page 1 of 1

RepoItemInfo.exists() stops finding after browser restarts

Posted: Wed Nov 27, 2013 9:25 am
by fimo420
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

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

Posted: Wed Nov 27, 2013 10:06 am
by Swisside
Hello !

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



Regards

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

Posted: Wed Nov 27, 2013 10:31 am
by fimo420
Hi,

No sure if this is what you wanted but here is the snapshot of the item in question.

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

Posted: Wed Nov 27, 2013 11:25 am
by Swisside
Thanks !


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

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

Posted: Wed Nov 27, 2013 12:15 pm
by fimo420
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

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

Posted: Wed Nov 27, 2013 1:07 pm
by Swisside
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

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

Posted: Wed Nov 27, 2013 1:32 pm
by fimo420
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.

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

Posted: Wed Nov 27, 2013 1:44 pm
by Swisside
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