Please note that Sahi's development and support teams do not actively monitor this. This is more a community forum. If you are a Sahi Pro user looking for commercial support, please email support @ sahipro.com with your query.
During playback session, sahi is not able to catch some of notifications

Hi All,
Sahi not able to catch some of notifications which appears for few seconds during playback session.
I have already tried with increasing value of "Time between steps" field in sahi.properties file.
Thanks in advance
Sahi not able to catch some of notifications which appears for few seconds during playback session.
I have already tried with increasing value of "Time between steps" field in sahi.properties file.
Thanks in advance
Best Answers
-
Hi,
Can you please elaborate wot do you mean by notifications?
Sahi does not populate any popups during playback,but still we can capture them.
Sahi identifies three types of popups
1.Alert 2.Confirm 3.Prompt
If you are not sure into which category the popup falls into,
use trial and error , initialize a string to each of the calls (i.e _lastAlert(),_lastConfirm(),_lastPrompt()) and print it so that you will know the return value. Use the appropriate call to capture the popup text.
-
Hi Sashi,
Can you please let us know what exactly do you mean by notifications. If you are talking about javascript popup boxes, then they cannot be populated and they are not shown with sahi. They are handled differently just like Soumya mentioned above.
Regards.
This discussion has been closed.
Answers
Notifications is generated by our web application not by sahi. It is like "Alert" which is present for around 3 seconds. I will try _lastAlert() and let you know about its working or not.
I think it will work.
Thanx again guys.
Please let me know when you check it out so that I can close the discussion if it works for you.
Regards.
It's working for my test cases.
Regards.