Good morning
Developer team explain me that they have use following component for pop-up message.
Bootstrap Notify (see: http://bootstrap-notify.remabledesigns.com/)
In the default configuratuon:
$.notify({
message: message,
}, {
type: type,
allow_dismiss: true,
newest_on_top: true,
showProgressbar: false,
placement: {
from: “top”,
align: “center”
},
animate: {
enter: ‘animated fadeInDown’,
exit: ‘animated fadeOutUp’
},
onClosed: () => {
notify = null
}
});
without scecify delay param, pop-up message is displaied for 5 seconds.
I have scan pop-up with “scan-application-ui” in ZapTest and saved “Message” view (see attachement).
Running the script we see how line 5 see the popupMessage but next line …Object(“txtMesasge”).GetText don’t catch message.
Perhaps because in the meanwhile the pop-up has disappeared?
Thank you very much.
In order to capture a quick disappearing popup there is a need to prepare ZAPTEST to do 2 main things:
1. Use only the most necessary methods, because each of the method require some processing time.
2. To create an object that ZAPTEST will manage to locate it as quickly as possible.
To follow these instructions you need to:
1. Use only the Exist method and only for the Text based object.
2. Before running the test make sure the Text object can be located in the ZAPTEST GUIMap (Use the “Calculate and show the OCR precision” icon to do so, the icon with the target image).
Please note the following:
If an object contains a text in it, it is best to use a Text based object (And not an image based object);
Image based object depends on the coordinates where it is located, this means, for example, if you’ll run same test in a different screen’s resolution rate an image object may not be found – Therefore in such case there is a need to use the “Relative Object” Property or to set it in an Area object.
More on images please check our tutorial on this at:
Thanks
I have:
– use “Calculate and Show OCR precision” for txtMessage and
– modify script as following (see new attachment):
If (Application(“Application”).View(“Message”).Object(“txtMesasge”).Exist) then
text = Application(“Application”).View(“Message”).Object(“txtMesasge”).GetText
Datatable.SetValue “resultMessage”,Trim(text)
else
Datatable.SetValue “resultMessage”,”Error: pop-up not found”
end if
but at runtime, even if the “then” branch is executed, text variable is set to “” (empty string).
Other technical details:
– ZapTest version 19.6.14 (free version)
– PC: Lenovo T430
– CPU: Intel Core i5 2.6 GHz
– RAM 4 GB
Hello Marco Malziotti,
1. Before running the test make sure the Text object can be located in the ZAPTEST GUIMap (Use the “Calculate and show the OCR precision” icon to do so, the icon with the target image).
2. There is no need to use the GetText method only the Exist method, because the popup disappears very quickly there is no time to process another method ( In the final test report you will be able to see if the Exist method captured the currect text.
Thanks,
ZAPTEST Team
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.