Setting the Window Context - WinRunner

WinRunner learns and performs operations on objects in the context of the window in which they appear. When you record a test, WinRunner automatically inserts a set_window statement into the test script each time the active window changes and an operation is performed on a GUI object. All objects are then identified in the context of that window. For example:

The set_window statement indicates that the Print window is the active window. The OK button is learned within the context of this window.

If you program a test manually, you need to enter the set_window statement when the active window changes. When editing a script, take care not to delete necessary set_window statements.

All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd Protection Status

WinRunner Topics