There is an application, which can analyze files and show output inside application. It is simple text, it can be highlighted and copied from application. Text is recognized only partly in a given view. It recognizes a few characters, words, but not whole sentences. How could I get text from a given view? Why could’t recognize all the textual information.
In order to enable ZAPTEST to recognize more then a single string you need to scan the View as a Block or as a Multiline – Such scans will create text based objects which may contain even a whole text paragraph:
To execute such scans you need to click the little right arrow-down button, next to the “Scan GUI” button;
Another option to enable such objects is by creating a Multiple or a Block Object type (Again, next to the “Create new object”, click the small arrow to choose such option), then you can set the object to contain more then a single string (Also you can do it in the “Recognition type” Property in every object which already was saved in the Repository).
Once you’ve set an object as a BlockMultiline you can then use methods such as “GetText” to retrieve the whole block data;
Also you can use methods such as “RightBlock” (Or any other direction) with a combination of all available methods to retrieve data which is next to the block, for example:
MsgBox Application(“Application”).View(“View”).Object(“Object”).RightBlock.GetText
Thanks, it is working, it scans all of the text areas. But it is unable in some cases to get text. As I see it can’t handle dotted characters and filenames with extensions.
When you create a new object ZAPTEST sets its type to an “OCR (Single)” type, change the object’s “Recognition Type” Property into Image and try again.
The Object’s Properties are being set during the GUI scan, when you want to run the test the Object gets to its runtime phase which then ZAPTEST tries to find the Object in the AUT (Application Under Test):
If the Properties are even a bit different during runtime then they are during the scan GUI phase the Object will not recognized properly which will cause methods such as GetText to return a wrong data.
Please check this tutorial how to create your first testing script with a few object’s recognition features:
P.S. If the above will not help, please attach your test script (The *.zap file) and a screenshot of the whole page you are trying to get text from it (Please note what text are you trying to get).
You must activate your account before using it, please open the email that was sent to the email address that you used to set-up your account and confirm your email address.
Check you SPAM folder if you do not see the email.
Virtual Expert
ZAPTEST
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
Cookie
Duration
Description
cookielawinfo-checkbox-analytics
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional
11 months
The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy
11 months
The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.