Page 1 of 1

XPath Question...next strange case

Posted: Mon Feb 16, 2009 4:18 pm
by StuByZurich
Hi again...

I wrote this code to get a link via xpath:

Code: Select all

            webDocument = @"/dom[@caption~'^Ferien']";
            ATag lnkRegisterAvailability = webDocument.FindSingle<ATag>(@".//div[@class='objectDetailsWrapper']/ul/li[2]/a");

It works....
But suddendly, when I debug, the ATag can not be find again.
But it is the same code.....and the DOM is also the same???!!!

What goes wrong....???

Sorry, but currently I can not write 5 minutes code without interruptions...

Thanks for any help

Regards,
Oliver

Posted: Mon Feb 16, 2009 4:26 pm
by Support Team
That's the same problem as in the previous thread: the Adapter.DefaultSearchTimeout is so low that the search is interrupted before the whole document is searched.

Please increase Adapter.DefaultSearchTimeout to some high value (e.g. TimeSpan.MaxValue)!

Regards,
Alex
Ranorex Support Team

Posted: Mon Feb 16, 2009 4:45 pm
by StuByZurich
Thanks for your help.
It seems, that this the rease was :-))

Oliver