18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
Problem for capturing "Div"
Hi,
There is a div (Type of Notification) which is displayed in case of Deletion/Creation/Updation of a graph.
This notification stays for few seconds on the screen ...For instance : After creating a graph i get the Notification saying "Graph successfully created".
Now while recording i am able to capture this notification by clicking on the Notification...
But this div is displayed for some few seconds...Like it depends on the response time frm the server.
So i am able to capture only few Notifications because they dissappear very early...
Also in recording when i put the message, the scripts returns false saying that the message doesnot exists....
whereas i can see the messages...
Is there any other way i could test it??? I need to test the notification messages displayed on creation/deletion/updation.
Thanks in advance!!!
Regards,
Akshada
There is a div (Type of Notification) which is displayed in case of Deletion/Creation/Updation of a graph.
This notification stays for few seconds on the screen ...For instance : After creating a graph i get the Notification saying "Graph successfully created".
Now while recording i am able to capture this notification by clicking on the Notification...
But this div is displayed for some few seconds...Like it depends on the response time frm the server.
So i am able to capture only few Notifications because they dissappear very early...
Also in recording when i put the message, the scripts returns false saying that the message doesnot exists....
whereas i can see the messages...
Is there any other way i could test it??? I need to test the notification messages displayed on creation/deletion/updation.
Thanks in advance!!!
Regards,
Akshada
Comments
Generally error messages would be displayed in a div with a particular id. Look at the alternatives dropdown to see if you can identify the div using its id instead of the message.
Once you have the id, use
_assertEqual("your expected message", _getText(_div("divId")));
to assert its message.
To capture the quickly disappearing messages, you can either look at the source of the page, or just be quick to note down the message. (You may take a screen shot and then type it down).
Regards,
Narayan