Hello Team,
I have to verify an image (Arrow) in the UltraGrid Cell along with the data font color. I am not sure how to verify the image in the cell but the font color is verified using InvokeRemotely method. Please find attached the image.
regards,
Rajneesh
UltraGrid Cell - Font Color and an Image Verfication
-
- Posts: 2
- Joined: Thu Aug 13, 2015 7:30 am
UltraGrid Cell - Font Color and an Image Verfication
You do not have the required permissions to view the files attached to this post.
Re: UltraGrid Cell - Font Color and an Image Verfication
Hi Rajneesh,
Sorry I couldn't answer your question, but part of your asked question was about to answer my own question.
I would like to verify font-color of a string (or text) and realized that you mentioned 'InvokeRemotely' method; please how can i implement it and could you please share your code (if possible).
Thanks and hope your question would be answered by expert soon.
Sorry I couldn't answer your question, but part of your asked question was about to answer my own question.
I would like to verify font-color of a string (or text) and realized that you mentioned 'InvokeRemotely' method; please how can i implement it and could you please share your code (if possible).
Thanks and hope your question would be answered by expert soon.
Re: UltraGrid Cell - Font Color and an Image Verfication
Hi guys,
Could you please post the Ranorex snapshot of your elements in question? Without snapshot, it's hard to suggest something definitive. Screenshot is unfortunately not helpful at all.
Rajneesh, if the image is not traceable by Ranorex as an individual element and you cannot find an info about it via spy, you will most probably have to use Image validation. Please check the user guide or for example this screencast...
http://www.ranorex.com/support/screencasts.html#c2529
Could you please post the Ranorex snapshot of your elements in question? Without snapshot, it's hard to suggest something definitive. Screenshot is unfortunately not helpful at all.
Rajneesh, if the image is not traceable by Ranorex as an individual element and you cannot find an info about it via spy, you will most probably have to use Image validation. Please check the user guide or for example this screencast...
http://www.ranorex.com/support/screencasts.html#c2529
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
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
Re: UltraGrid Cell - Font Color and an Image Verfication
Hi Odklizec,
Thanks for your response.
I have no Snapshot for the element i'm discussing; this is because it came from clipboard as in code below:
actualData (variable in above code) is the element i'm trying to get its color and store it to a variable or compare it with expected known color.
Many thanks.
Thanks for your response.
I have no Snapshot for the element i'm discussing; this is because it came from clipboard as in code below:
Code: Select all
Container dataGrid = form.FindSingle<Container>("ranorex rxpath");
int count = dataGrid.Children.Count;
IList<Unknown> rows = dataGrid.Children;
foreach (Unknown child in rows)
{
Unknown cont = child.Children[0];
Unknown cellsCont = cont.Children[1];
IList<Cell> cellsList = cellsCont.FindChildren<Cell>();
foreach (var cell in cellsList)
{
cell.Click();
Keyboard.Press("{ControlKey DOWN}{ckey}");
Keyboard.Press("EscapeKey");
string actualData = Clipboard.GetText();
Console.WriteLine(actualData);
}
}
Many thanks.
Re: UltraGrid Cell - Font Color and an Image Verfication
Hi kam,
I believe this is the code you using for obtaining the content of wpf grid cells we discussed few days ago? If I'm not mistaken, InvokeRemotely is available only for winforms, not wpf elements.
I believe this is the code you using for obtaining the content of wpf grid cells we discussed few days ago? If I'm not mistaken, InvokeRemotely is available only for winforms, not wpf elements.
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
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
Re: UltraGrid Cell - Font Color and an Image Verfication
That's correct (it is previous code) odklizec.
Please do you know any available wpf option(s) that suit my scenario.
Thanks.
Please do you know any available wpf option(s) that suit my scenario.
Thanks.
Re: UltraGrid Cell - Font Color and an Image Verfication
Hi,
Unfortunately, I don't work with wpf controls, so there is not much I can suggest you regarding the wpf options. I can only suggest to check the wpf-related posts discussing similar problems, like this one...
http://www.ranorex.com/forum/unable-to- ... t8349.html
Unfortunately, I don't work with wpf controls, so there is not much I can suggest you regarding the wpf options. I can only suggest to check the wpf-related posts discussing similar problems, like this one...
http://www.ranorex.com/forum/unable-to- ... t8349.html
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
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
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: UltraGrid Cell - Font Color and an Image Verfication
Hello Rajneesh Goyal and kam,
May I ask if you were able to solve your issues?
If not, it would be great if you could send a Ranorex Snapshot of the corresponding element to [email protected].
This would help us analyzing the issue.
Thank you in advance.
Regards,
Johannes
May I ask if you were able to solve your issues?
If not, it would be great if you could send a Ranorex Snapshot of the corresponding element to [email protected].
This would help us analyzing the issue.
Thank you in advance.
Regards,
Johannes