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?
Top
Validate text color
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Validate text color
Hi weiksein,
If you are able to provide a Ranorex Snapshot (not screenshot) of the element, we can provide the exact answer to validating this element's color. If there is no dedicated attribute that provides the color, then you can likely use a InvokeAction > GetStyle to get the color.
I hope this helps!
Cheers,
Ned
If you are able to provide a Ranorex Snapshot (not screenshot) of the element, we can provide the exact answer to validating this element's color. If there is no dedicated attribute that provides the color, then you can likely use a InvokeAction > GetStyle to get the color.
I hope this helps!
Cheers,
Ned
You do not have the required permissions to view the files attached to this post.
Re: Validate text color
hii wilskein
the best way to validate text color is searching " colour:" if you find any better way please let us know
Thanks
Paul
the best way to validate text color is searching " colour:" if you find any better way please let us know
Thanks
Paul