Hi
How is it possible that all usable attributes of text field are different to what is displayed?
The following example is from the Windows 10 Calculator result field.
Text: 'Display is 9'
Caption: 'Display is 9'
Visible: '9'
1) How is this technically possible
2) How to extract the number
Windows 10 / 64 bit
Ranorex 5.4.6
Thanks
Speedboat
Text field contains text and number, visible is number only
Text field contains text and number, visible is number only
You do not have the required permissions to view the files attached to this post.
Re: Text field contains text and number, visible is number only
Hi,
You can for example use Get Value action, with regular expression like this:
You can for example use Get Value action, with regular expression like this:
This should return number (including decimal numbers) from given string.[0-9\.]+
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
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
Re: Text field contains text and number, visible is number only
However, any idea how this "effect" is constructed that the displayed value differs from attribute values?
"It sounds to me like a kind of misuse of windows objects"
Thanks for the regex
"It sounds to me like a kind of misuse of windows objects"
Thanks for the regex
Re: Text field contains text and number, visible is number only
Sorry, don't have any clue how exactly this element is created. You know, it's a MS calculator, so virtually anything is possible If I were you, I would not care much about this kind of problem. You are surely not going to test the MS calc app?
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
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