I am using winrunner 7X. I wanted to know how to check the status of the browser and if it is not maximized. Then maximize it. Then proceed with the rest of the script. Does anybody have the script or any insight will be appreciated.
The above solution did not work.
Because the win_max function in the if statement maximizes the window and then checks for the condition.
if (win_max("window1") != E_OK) // window1 is maximized before checking the condition, the result is now false
therefore it can never get into the statement,
which is inside the if statement.
[This message has been edited by Joy (edited 09-11-2002).]