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
Search found 9 matches
- Tue Jul 28, 2015 1:45 pm
- Forum: Automation Tools
- Topic: Getstyle only gives default style
- Replies: 8
- Views: 2458
- Tue Jul 28, 2015 1:22 pm
- Forum: Automation Tools
- Topic: Getstyle only gives default style
- Replies: 8
- Views: 2458
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 ...
- Tue Jul 28, 2015 10:19 am
- Forum: Automation Tools
- Topic: Getstyle only gives default style
- Replies: 8
- Views: 2458
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>
<div style="font-weight:normal;font-style:italic;font-family:Arial;position:relative;top:0px;display:inline;color:rgb(216,40,40);">ll</div>
- Tue Jul 28, 2015 10:04 am
- Forum: Automation Tools
- Topic: Getstyle only gives default style
- Replies: 8
- Views: 2458
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
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
- Tue Jul 28, 2015 9:46 am
- Forum: Automation Tools
- Topic: Getstyle only gives default style
- Replies: 8
- Views: 2458
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) ...
- 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: 2695
Re: How to return success if the comparison of 2 images fails
This works perfectly, thanks a lot!
- Mon May 04, 2015 4:28 pm
- Forum: Automation API
- Topic: How to return success if the comparison of 2 images fails
- Replies: 6
- Views: 2695
Re: How to return success if the comparison of 2 images fails
Thanks, I will try this
- 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: 2695
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 ...
- 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: 2695
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...