I am currently working on webtest witout the recorder.
But I have a lot of problems with the RanorexXPath.
I think I should know how XPath generally works
Here a little problem, which I obeserved more than one time:
I created a webDocument which works.
Then I tried to get the object by a shorter XPath-Syntax. Not that long xpath-syntax generated by ranorex-spy.
But the ATag element will be not found.
I tried it also with different xpath-syntax, but always without success.
Normaly every element on my webpage has an unique id-attribute, so I tried it to find it direct by attribute-id.
But also without success.
What do I wrong????
Code: Select all
webDocument = @"/dom[@caption~'^Ferienwohnung']"; ATag lnkRegisterAvailability = webDocument.FindSingle<ATag>(@".//div[@class='objectDetailsWrapper']/ul/li/a");