Search found 9 matches

by Fandora
Tue Jul 28, 2015 1:45 pm
Forum: Automation Tools
Topic: Getstyle only gives default style
Replies: 8
Views: 2449

Re: Getstyle only gives default style

I found!!

thank for your help, it was effectively the element pointed that wasn't correct
thank a lot for your time and suggestions which helped me a lot in finding what was wrong
by Fandora
Tue Jul 28, 2015 1:22 pm
Forum: Automation Tools
Topic: Getstyle only gives default style
Replies: 8
Views: 2449

Re: Getstyle only gives default style

Unfortunately I cannot change the version (we are many to use the same version for the project) i find the element with this line : DivTag textElement = rootDiv.FindSingle(".//div[@innerText='" + innerText + "']"); were innerText is "ll" and rootDiv one of the element's parent (cannot put it in the ...
by Fandora
Tue Jul 28, 2015 10:19 am
Forum: Automation Tools
Topic: Getstyle only gives default style
Replies: 8
Views: 2449

Re: Getstyle only gives default style

here is the html code of the element, don't know if this helps

<div style="font-weight:normal;font-style:italic;font-family:Arial;position:relative;top:0px;display:inline;color:rgb(216,40,40);">ll</div>
by Fandora
Tue Jul 28, 2015 10:04 am
Forum: Automation Tools
Topic: Getstyle only gives default style
Replies: 8
Views: 2449

Re: Getstyle only gives default style

Thank for your rapidity

I use Chrome (not tried on the other browser), and ranorex version is 5.1.4.21168

sorry but I cannot tell you the app or post html
by Fandora
Tue Jul 28, 2015 9:46 am
Forum: Automation Tools
Topic: Getstyle only gives default style
Replies: 8
Views: 2449

Getstyle only gives default style

Hello, I got a problem with the function getstyle. I search an element (divTag) in a webdocument, and then try to inspect the different styles of Report.Info(textElement.GetStyle("color")); // textElement is my divTag but the color is not correctly displayed, in the report, I only have rgb(0, 0, 0) ...
by Fandora
Mon May 04, 2015 4:51 pm
Forum: Automation API
Topic: How to return success if the comparison of 2 images fails
Replies: 6
Views: 2687

Re: How to return success if the comparison of 2 images fails

This works perfectly, thanks a lot!
by Fandora
Mon May 04, 2015 9:02 am
Forum: Automation API
Topic: How to return success if the comparison of 2 images fails
Replies: 6
Views: 2687

Re: How to return success if the comparison of 2 images fails

Thanks for your help. The problem is not totally resolved but it's better. By replacing RanorexException with Ranorex.ValidationException, when the images are different, the test continues but there is still a report as "failed" for the validate.CompareImage and this results in a "failed" state for ...
by Fandora
Thu Apr 30, 2015 3:09 pm
Forum: Automation API
Topic: How to return success if the comparison of 2 images fails
Replies: 6
Views: 2687

How to return success if the comparison of 2 images fails

Hello, I use Ranorex for only a few time and for the need of automation tests, I want return success in case two images are different (one is in the repository, the other is a screenshot of the current screen). The aim of this is to know if elements have moved (and they should have move). I tried th...