|
Answer» win_activate has the format win_activate(window);. The win_activate function makes the specified window the active window by bringing it into focus & raising it to the top of the display. (It is the equivalent to clicking on the window banner)
Set_window has the FOLLOWING format: set_window(window,[time]); The set_window function directs input to the correct application window. This directs the GUI map to this window. It also sets the scope for object identification in the GUI map.
The most important difference is that set_window has a timing OPTION. WinRunner will wait a maximum of the number used in the function, PLUS the system set TIMEOUT, to wait for the window to APPEAR. Win_activate assumes the window is already on the desktop and has no timing option. win_activate has the format win_activate(window);. The win_activate function makes the specified window the active window by bringing it into focus & raising it to the top of the display. (It is the equivalent to clicking on the window banner)
Set_window has the following format: set_window(window,[time]); The set_window function directs input to the correct application window. This directs the GUI map to this window. It also sets the scope for object identification in the GUI map.
The most important difference is that set_window has a timing option. WinRunner will wait a maximum of the number used in the function, PLUS the system set timeout, to wait for the window to appear. Win_activate assumes the window is already on the desktop and has no timing option.
|