Absent Member.
Absent Member.

Autocomplete dropdown list not displayed with qtp for webedit

 I have a problem in my web application automation with qtp. QTP is setting value in the Edit box. But drop down list is not displayed while doing with QTP. If we are trying manually then list is getting displayed..

Please let me know is there any patch required to make it work.

3 Replies
Honored Contributor.. Honored Contributor..
Honored Contributor..

These types of issues are usually not related to an actual bug in UFT/QTP, hence no patch has been, applied to fix this, nor is needed.

However, there are scenarios where there are inconsistencies in how you manually alter an object and how UFT/QTP does it. This is due to the fact that when you are working with it manually, you are manipulating the actual object by clicking and adding characters in it. Through UFT/QTP on the other hand, the automation is altering directly on the underlying DOM-structure.

This means that when you are manipulating an object through automation, these activities are not triggered as intervening with the actual object and the autocomplete dropdown will therefore not be presented.

To actually trigger the autocomplete, I would suggest you to look into solutions that do these types of manual manipulation. Some examples are found in the other forum thread you posted in: Autocomplete dropdown list not displayed with qtp for webedit.

Joe Colantonio do also have a really good overview for the different ways to intervene with the system: 3 ways to use keyboard input in QuickTest Professional: Type, SendKeys and Device Replay.

Good luck!

New Member.

Also I am passing another option to try it out - BLUR event. More reliable than send keys if it works for you.


Accept as solution/Give Kudos to the author if the piece of information answered/helped you to solve your problem.
All the thoughts here are mine not related to my employer nor anyone.
Test Automation Ecstasy


This can be done by using Shell script. Create your shell object, click your edit button using shell and then sendkey you string value to that field.

Set WshShell = CreateObject("WScript.Shell")
WshShell.SendKeys <<<yourString>>>
'you should be seeing the autocomplete option from here (dropdown of values)
Set WshShell = Nothing

Note: you may not see it in debug mode as you're going to lose focus on your application. Better to do normal run.

Regards, Vince

The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.