Modifying Your Script to Resolve Window Not Found Exceptions When Using TrueLog

This functionality is supported only if you are using the Classic Agent.

When you run a script and get a Window 'name' was not found error, you can modify your script to resolve the issue. Use this procedure if all of the following options are set in the TrueLog Options - Classic Agent dialog box:

The preceding settings are set by default if you select Full as the TrueLog preset.

To resolve this error, in your test case, use FlushEvents() after a PressKeys() and ReleaseKeys() pair. Or, you can use TypeKeys() instead.

There is no need to add sleep() calls in the script or to change timeouts.

testcase one()
  Browser.SetActive()
  // Google.PressKeys("<ALT-T>")
  // Google.ReleaseKeys("<ALT-T>")
  Google.TypeKeys("<ALT-T>")
  Agent.FlushEvents ()
  Google.TypeKeys("O")
  Agent.FlushEvents ()

  //recording
  IE_Options.SetActive ()
  IE_Options.PageList.Select ("Security")
  IE_Options.Security.SecurityLevelIndicator.SetPosition (2)
  BrowserMessage.SetActive ()
  BrowserMessage.OK.Click ()
  IE_Options.SetActive ()
  IE_Options.OK.Click()