RepoItemInfo.Exists(..) never stops

Ask general questions here.
MJesper
Posts: 38
Joined: Fri Dec 28, 2018 2:16 pm

RepoItemInfo.Exists(..) never stops

Post by MJesper » Mon Mar 25, 2019 11:44 am

Code: Select all

        public void WaitUntilExists(RepoItemInfo repoItemInfo)
        {
        	Report.Info("before");
        	repoItemInfo.Exists(new Duration(1000));
        	Report.Success("after");
        }
"after" never runs, it will keep on looping forever. I only want it to wait for 1000 ms then timeout, how can I do that? (This is in the case of the element not existing, if the element exists then "after" gets ran shortly after)

MJesper
Posts: 38
Joined: Fri Dec 28, 2018 2:16 pm

Re: RepoItemInfo.Exists(..) never stops

Post by MJesper » Mon Mar 25, 2019 12:25 pm

okay.. something extremely weird is happening to my elements, for some reason, this element has a 2.5 hours timeout, while in the Repository it's set to 1.5 minutes.

Image

Image

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

Re: RepoItemInfo.Exists(..) never stops

Post by McTurtle » Mon Mar 25, 2019 3:42 pm

Hi MJesper,

Interesting. Post the compressed Ranorex Solution please: How to...

Regards,
McTurtle