Is it possible to validate HTML alt tag?

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
QATest879
Posts: 32
Joined: Fri Jul 02, 2021 2:35 pm

Is it possible to validate HTML alt tag?

Post by QATest879 » Wed Oct 27, 2021 1:10 pm

Is it possible to access with Ranorex: The text description when you hover over an image or web element?
For example if you move your cursor over the green "Post Reply" button on the Ranorex forums there is a textbox that says, "Post a reply" is it possible to put this alt tag into the Ranorex repository somehow?
Such as HTML alt tags?

Thank you.

QATest879
Posts: 32
Joined: Fri Jul 02, 2021 2:35 pm

Re: Is it possible to validate HTML alt tag?

Post by QATest879 » Wed Oct 27, 2021 1:13 pm

This is an example. Could "Post a reply" be its own repository item?

And if it can't be a repository item, can I at least validate it by using it as an attribute of the button instead?
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: Is it possible to validate HTML alt tag?

Post by odklizec » Wed Oct 27, 2021 2:51 pm

Hi,

I think that this kind of "tooltip" cannot be directly recorded or tracked with Ranorex. Ranorex does support tooltip validation, but from my experience, it works only with some desktop apps, not HTLM pages.

Also, the tooltip text is not always stored in "Alt" tag. For example the "Post Reply" button uses "Title" attribute instead. So what you can do is to store "Post Reply" element to repo and simply validate its Title attribute. Or an equivalent attribute, which stores the "tooltip" text.
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