Automation Object Model (AOM) statements be executed within a script

The Automation Object Model (AOM) was designed to be used outside of QuickTest Professional (QTP) / Unified Functional Testing (UFT)and not within a script (during replay).

Note:Some AOM statements may run in a script; others will generate errors. The AOM should not be used within a script tochange settings during the script execution.

If it were needed to change QTP/UFT’s settings using AOM statements, create a .VBS file to launch QTP/UFT and execute the test scripts.