Forum Discussion
nisgupta
9 years agoValued Contributor
The issue that notification come for very few seconds and go away . By the time I try to do object spy that notification panel go away.
The notification panel is based jquery plugin notify.js
you can find the details https://notifyjs.com
then go to the statements
$.notify("Hello World");
and click on the Hello World . you will see "Hello World notification appear on top right corner for few seconds and then it go away. How do you handle object spy in this case
Thanks
NG
dganov
Staff
9 years agoYou can just disable auto hide of notifications on the web page:
$.notify.defaults( { autoHide: false, clickToHide: true } )
To do it using TestComplete call something like this:
Sys.Browser().Page("*").contentDocument.Script.eval("$.notify.defaults( { autoHide: false, clickToHide: true } )")