During Test Automation, we identify various objects successfully, but many a times during script execution we face issues where our scripts fail to identify objects. What is the probable cause of such errors? Well, I'd say the test environment plays an important role in which you run your scripts.
• To turn-off UAC in Windows 7, go to Start Menu > Search for “Change User Account Settings” > Disable UAC
• To turn-off UAC in Windows 8/8.1, you need to take help of registry. UI setting doesn’t trulyturns-off UAC in Win 8/8.1. Hit Win + R key, type regedit and click OK. Navigate toHKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System
Find the key: EbableLUA and change the Value Data value to 0
A shortcut key to get back to 100% zoom is Ctrl + 0 (that’s zero).
Load relevant Add-ins
Make sure you have loaded ALL the relevant add-ins required for your Application under Test (AUT).Disable Protected Mode
In IE, clear the Enable Protected Mode option under Tools > Internet Options > SecurityUser Account Control (UAC)
UAC was introduced in Windows Vista and continued in Win 7 and Win 8/8.1. UAC can interfere with your application. It is a good idea to disable it while working with any Test Automation tool.• To turn-off UAC in Windows 7, go to Start Menu > Search for “Change User Account Settings” > Disable UAC
• To turn-off UAC in Windows 8/8.1, you need to take help of registry. UI setting doesn’t trulyturns-off UAC in Win 8/8.1. Hit Win + R key, type regedit and click OK. Navigate toHKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System
Find the key: EbableLUA and change the Value Data value to 0
Zoom Level
Make sure the zoom level is set to 100% while testing in any browser. Check the illustration below on how zoom-level affects highlight object functionality in QTP. (Focus on the blinking black rectangle on the left once the Highlight button is clicked on the right.)A shortcut key to get back to 100% zoom is Ctrl + 0 (that’s zero).