Identify form based on the text on the form.

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
shanefox
Posts: 8
Joined: Tue Jul 10, 2018 8:10 pm

Identify form based on the text on the form.

Post by shanefox » Fri Nov 09, 2018 8:44 pm

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 ?

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 7470
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

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

Post by odklizec » Fri Nov 09, 2018 8:59 pm

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.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

shanefox
Posts: 8
Joined: Tue Jul 10, 2018 8:10 pm

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

Post by shanefox » Fri Nov 09, 2018 9:04 pm

information form.png
This is the form. This form will sometime have different text on it and or a different caption.
You do not have the required permissions to view the files attached to this post.

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 7470
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

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

Post by odklizec » Fri Nov 09, 2018 9:10 pm

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/
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

shanefox
Posts: 8
Joined: Tue Jul 10, 2018 8:10 pm

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

Post by shanefox » Fri Nov 09, 2018 9:51 pm

Sorry , I misread your original posts. Thanks for the link . I will read it over . It I get stuck again I will update.