Hello,
I know that Ranorex supports DevExpress suite, my question is very similar to this one: http://www.ranorex.com/forum/finding-th ... t1030.html
though as opposed to Infragistics, DevExpress should be recognizable.
Also, I can't modify the code in the application to include the remote invoke so i'm hoping there's a different approach I can use.
I'm trying to get the colour of a cell (actually just the foreground) and I can't use image comparison as the text in the cell keeps changing all the time.
I can't find any appearance attribute to the cell, which is in fact not recognized as a DevExrpess cell but just as a cell (this is a regular DevExpress grid, not PivotGrid)
Enclosed is the properties window of the cell (the attributes don't have any appearance in them either).
I'm using Ranorex 2.2.2.7850 on win xp pro SP3. DevExpress 9.3.4 (if it matters).
Thanks!
Finding color of a cell in DevExpress grid
Finding color of a cell in DevExpress grid
You do not have the required permissions to view the files attached to this post.
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Finding color of a cell in DevExpress grid
Hi,
Sorry but there is no way out of the box to get the fore color of the cell. We don't get this property of the cell. The only way is to write its own method, which read the pixel of a picture from the cell and return the expected color. Another solution would be, that you ask your developer if it's possible to write the fore color to an accessibility property for example @accessibledescription. So Ranorex is able to get the string of the fore color.
Regards,
Peter
Ranorex Support Team
Sorry but there is no way out of the box to get the fore color of the cell. We don't get this property of the cell. The only way is to write its own method, which read the pixel of a picture from the cell and return the expected color. Another solution would be, that you ask your developer if it's possible to write the fore color to an accessibility property for example @accessibledescription. So Ranorex is able to get the string of the fore color.
Regards,
Peter
Ranorex Support Team
Re: Finding color of a cell in DevExpress grid
Thanks for the quick reply.
I'll see what I can do about the pixel colour
I'll see what I can do about the pixel colour