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.

the properties for WebEdit object are

"Class Name:=WebEdit",
"default value:=",
"html id:=alertTextTag",
"html tag:=INPUT",
"max length:=2147483647",
"outerhtml:=<INPUT aria-haspopup=true id=alertTextTag class="ui-autocomplete-input" role=textbox size=45 type=text name=alertTextTag autocomplete=""off"" jQuery171016074769097226676=""73"" aria-autocomplete=""list"">",
"width in characters:=45",


Manually ,After clicking the webedit box when we press the down arrow, dropdown list is displayed .I tried to do the exactly same in qtp script by SendKey method with following code


Set WshShell = CreateObject("WScript.Shell")
Browser("BrowserName").Page("PageName").WebList("searchForAlertBy").Select "Alert Category"
Browser("BrowserName").Page("PageName").WebEdit("alertTextTag").Set "Assets"

Wscript.Sleep 100
WshShell.SendKeys "{DOWN}"


But Down key is not pressed on application.

What is wrong with this code and is there any other method to achieve this?












Parents Reply Children