Page 1 of 1

MaxLength validation in Internet Explorer

Posted: Fri Jul 03, 2015 8:47 am
by Primoz
Hi,

I've had an interesting issue with validation of MaxLength field value when running ranorex test in IE (11) on two different machines. In Firefox (38.0.5) and Chrome (43.0.2357.130) the test runs properly and gets the proper value of the field (150) where in IE it returns an error (does not match the specified value (actual='(null)', expected='150')).

This is the code from the application:

IE:

Code: Select all

<textarea name="note" class="in_popup" id="add_note_text_id" maxlength="150" type="text" value=""></textarea>
FF:

Code: Select all

<textarea name="note" class="in_popup" id="add_note_text_id" maxlength="150" type="text" value=""></textarea>
Chrome:

Code: Select all

<textarea id="add_note_text_id" maxlength="150" name="note" type="text" class="in_popup" value=""/>

The repository item in Ranorex:
Image

Recording item in Ranorex:
Image

I've tried to set value in Match name to lower-case maxlength, but to no avail. This is the only textarea object with this id on the page.

Any tips on how to manage this for IE?

Re: MaxLength validation in Internet Explorer

Posted: Fri Jul 03, 2015 9:06 am
by odklizec
Hi,

It seems even Ranorex Spy (5.3.3) always returns empty "maxlength" value from IE. Maxlength is supported from IE 10, but Ranorex is not able to return correct value even from IE11. So it looks like a Ranorex bug?

What you can try is the latest Ranorex 5.4 (I did not try this version yet) and if it does not work also here, report it to [email protected].

Re: MaxLength validation in Internet Explorer

Posted: Mon Jul 06, 2015 10:06 am
by Support Team
Hi guys,

I've created an entry within our internal bug-tracking system. We will analyze the behavior.

Thank you for reporting the issue.

Regards,
Robert

Re: MaxLength validation in Internet Explorer

Posted: Wed Jul 22, 2015 9:18 am
by Primoz
Sorry for late reply, I've tested this and it's also applicable to version 5.4.0 .

Re: MaxLength validation in Internet Explorer

Posted: Wed Sep 16, 2015 10:02 am
by Support Team
Hello all,

This issue should be fixed with Ranorex 5.4.1 and Ranorex 5.3.4.

Kind regards,
Robert