Page 1 of 1

Identify form based on the text on the form.

Posted: Fri Nov 09, 2018 8:44 pm
by shanefox
I am trying to identify a form based on the text on the form. Not the form name or caption but a label that is on the form . Is this possible? If so how can it be done ?

Re: Identify form based on the text on the form.

Posted: Fri Nov 09, 2018 8:59 pm
by odklizec
Hi,

Unfortunately, it’s hard to say without seeing, at very least, Ranorex snapshot (NOT screenshot) of the form in question. Could you please upload the snapshot? Generally speaking, it should be possible simply find the label, and then, using xpath axis, return back to nearest form. But once again, Ranorex snapshot would be really helpful here.

Re: Identify form based on the text on the form.

Posted: Fri Nov 09, 2018 9:04 pm
by shanefox
information form.png
This is the form. This form will sometime have different text on it and or a different caption.

Re: Identify form based on the text on the form.

Posted: Fri Nov 09, 2018 9:10 pm
by odklizec
Hi,

Please post a Ranorex snapshot. What you’ve posted is screenshot, which is, unfortunately, useless ;)

Btw, this blogpost should help you with construction of the right xpath...
https://www.ranorex.com/blog/ranorexpat ... nd-tricks/

Re: Identify form based on the text on the form.

Posted: Fri Nov 09, 2018 9:51 pm
by shanefox
Sorry , I misread your original posts. Thanks for the link . I will read it over . It I get stuck again I will update.