Checking a Textbox's Background Color
Checking a Textbox's Background Color
I am writing a test module that will check a specified textbox to see if it's background color is yellow. The only problem is that I cannot find the value in the Ranorex.Text variable. I looked around online to see if anyone else has had the same issue as me, but the solutions I found didn't work. Does anyone know how to find this value through C#?
- Support Team
- Site Admin
- Posts: 12167
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Graz, Austria
Re: Checking a Textbox's Background Color
Hi dcarlozzi,
Often times the color is stored in a parent element and not the text element itself. If you are able to provide a Ranorex Snapshot of this element, I will be happy to analyze your application and recommend the best practice to validate the textbox's color.
Cheers,
Ned
Often times the color is stored in a parent element and not the text element itself. If you are able to provide a Ranorex Snapshot of this element, I will be happy to analyze your application and recommend the best practice to validate the textbox's color.
Cheers,
Ned