Getting the text inside a button's icon
-
- Posts: 7
- Joined: Wed May 02, 2018 3:48 pm
Getting the text inside a button's icon
I have a button that displays a number which is dynamically set by the application under test. I need the number to do some validations with it. However, I tried pretty much all the properties of the button to try and get number but so far couldn't. Please see a snapshot of the button in the attachment. Any idea/tips/hint would be much appreciated.
You do not have the required permissions to view the files attached to this post.
Re: Getting the text inside a button's icon
Hi,
You could try to add the classname to the GDI capture list and see if Ranorex is able to identify a text element from which you can retrieve data. However, it's quite hard to tell how the text is implemented on the button since there are no screenshots visible in the snapshot.
regards, qwertzu
You could try to add the classname to the GDI capture list and see if Ranorex is able to identify a text element from which you can retrieve data. However, it's quite hard to tell how the text is implemented on the button since there are no screenshots visible in the snapshot.
regards, qwertzu
You do not have the required permissions to view the files attached to this post.
Re: Getting the text inside a button's icon
Hi,
If the text you want to extract from button is a part of image, then I'm afraid, you are out of luck here. The only help could be some kind kind of OCR code, which may eventually help with extracting text from image. But I'm afraid, there is no built-in feature like this in Ranorex.
If the text you want to extract from button is a part of image, then I'm afraid, you are out of luck here. The only help could be some kind kind of OCR code, which may eventually help with extracting text from image. But I'm afraid, there is no built-in feature like this in Ranorex.
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
-
- Posts: 7
- Joined: Wed May 02, 2018 3:48 pm
Re: Getting the text inside a button's icon
Thanks guys for the replies. I will play with the GDI capture and see.