In silk test script i want to check for a occurance of message box.
while ruuning script if message box appears the it should click OK othwise it should continue with the process
How do i do the
If it appears at random times, the SetTrap() suggestion above is an option. It looks for the window indicated with each call to the agent. A slight performance hit, but not real bad. SetTrap is not 100% reliable, but I've found it useful in many situations.
// your code
As a tip, I find it most effective if you enable and disable it within the tightest scope possible.