when i run my script...it is sometimes not recognizing the browser window. sometimes it is working fine...how to resolve this
Thanks for the help
In general, make sure that you open WinRunner before you open any browser windows. Also make sure you close any extra browser windows that are not part of the application you are recording.
Is there any way where we can write a function to say which window is active
For retreiving the name of the Active window, you can use the function "GUI_Get_Window()". The function does not has any parameters and returns the name of the active window .
Refer to Winrunner Online Reference for more information