MaxLength validation in Internet Explorer

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
Primoz
Posts: 8
Joined: Mon Nov 17, 2014 10:01 am

MaxLength validation in Internet Explorer

Post by Primoz » Fri Jul 03, 2015 8:47 am

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?

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 3949
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: MaxLength validation in Internet Explorer

Post by odklizec » Fri Jul 03, 2015 9:06 am

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].
Pavel Kudrys
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

User avatar
Support Team
Site Admin
Site Admin
Posts: 11710
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: MaxLength validation in Internet Explorer

Post by Support Team » Mon Jul 06, 2015 10:06 am

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
.
Image

Primoz
Posts: 8
Joined: Mon Nov 17, 2014 10:01 am

Re: MaxLength validation in Internet Explorer

Post by Primoz » Wed Jul 22, 2015 9:18 am

Sorry for late reply, I've tested this and it's also applicable to version 5.4.0 .

User avatar
Support Team
Site Admin
Site Admin
Posts: 11710
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: MaxLength validation in Internet Explorer

Post by Support Team » Wed Sep 16, 2015 10:02 am

Hello all,

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

Kind regards,
Robert
.
Image