Page 1 of 1
Atributeregex comparing to textfield fails.
Posted: Thu Oct 18, 2012 1:58 pm
by topcatalpha
Atributeregex comparing to textfield fails when i have a large text and the value to compare is at the end of the text. It seems the text value is not completely the same as the value in the software to test. Is it possible i cuts the value at a certain point ?
how can i compare my text with a large text in a textbox from a windows app ?
i tried with a partial text (somewhere) at the beginning of the software and that did work.
regards,
Kurt
Re: Atributeregex comparing to textfield fails.
Posted: Fri Oct 19, 2012 10:37 am
by Support Team
Hi,
Yes it should be possible with regular expressions.
In order to analyze the issue could you send us a Ranorex Snapshot file of the textbox and the specific text?
How do you have tried to compare it, could you send us the code you used?
Following link will show you how to generate a snapshot file:
Creating Ranorex Snapshot Files.
Regards,
Markus
Ranorex Support Team
Re: Atributeregex comparing to textfield fails.
Posted: Mon Oct 22, 2012 7:46 am
by topcatalpha
Herewith the snapshot file. with only a part of the text in the property window.
Also the textvalue from the editbox.
Regards,
Kurt
Re: Atributeregex comparing to textfield fails.
Posted: Mon Oct 22, 2012 3:15 pm
by Support Team
Hello Kurt,
There seems to be a limitation of 4096 characters in the child element from control 'textBoxDebug'.
The control itself doesn't have this limitation.
You could set/get the value of the text property of the control 'textBoxDebug'.
Regards,
Markus (T)
Support Team
Re: Atributeregex comparing to textfield fails.
Posted: Wed Oct 24, 2012 9:09 am
by topcatalpha
OK, Thx. I'll try this today.
Does it mean the recorder takes the wrong object/property when i use the validate functionality in recording mode?
Regards,
Kurt
Re: Atributeregex comparing to textfield fails.
Posted: Wed Oct 24, 2012 10:42 am
by Support Team
Hello Kurt,
The recorder takes the object that it gets from the application.
In your case, it uses a child text element of the 'textBoxDebug' control object which has a size limitation based on the technology used by your application.
Regards
Markus (T)
Ranorex Support Team