XPath Question...next strange case

Ask general questions here.
StuByZurich
Posts: 18
Joined: Fri Jan 23, 2009 2:04 pm

XPath Question...next strange case

Post by StuByZurich » Mon Feb 16, 2009 4:18 pm

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

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Post by Support Team » Mon Feb 16, 2009 4:26 pm

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

StuByZurich
Posts: 18
Joined: Fri Jan 23, 2009 2:04 pm

Post by StuByZurich » Mon Feb 16, 2009 4:45 pm

Thanks for your help.
It seems, that this the rease was :-))

Oliver