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
Atributeregex comparing to textfield fails.
-
- Posts: 47
- Joined: Tue Sep 06, 2011 7:48 am
- Support Team
- Site Admin
- Posts: 12174
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Atributeregex comparing to textfield fails.
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
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
-
- Posts: 47
- Joined: Tue Sep 06, 2011 7:48 am
Re: Atributeregex comparing to textfield fails.
Herewith the snapshot file. with only a part of the text in the property window.
Also the textvalue from the editbox.
Regards,
Kurt
Also the textvalue from the editbox.
Regards,
Kurt
- Attachments
-
- UPgraderGUI.zip
- (177.21 KiB) Downloaded 321 times
- Support Team
- Site Admin
- Posts: 12174
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Atributeregex comparing to textfield fails.
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
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
-
- Posts: 47
- Joined: Tue Sep 06, 2011 7:48 am
Re: Atributeregex comparing to textfield fails.
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
Does it mean the recorder takes the wrong object/property when i use the validate functionality in recording mode?
Regards,
Kurt
- Support Team
- Site Admin
- Posts: 12174
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Atributeregex comparing to textfield fails.
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
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