Validate text color

Ask general questions here.
Posts: 210
Joined: Tue Apr 13, 2010 9:59 am

Validate text color

Post by SanMan » Mon Dec 16, 2019 11:45 am

I have a table and there is a text with some color:

/row[@index='0']/cell[@content='<html><style>body {font: 11 Tahoma; color:#FF00FF}...

What is the best way to validate the text color?

Should I save the content to String and then search the "color:" and read the value?

Or is there some better ways to do this?

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

Re: Validate text color

Post by odklizec » Mon Dec 16, 2019 11:56 am


Could you please post a Ranorex snapshot (NOT screenshot) of given element? It would be much easier to determine what to do. Thanks.
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