Hi Pavani, Please find following code where Webedit box is same as your case. The Only difference is QTP identify this as Webedit ,So you can use Descriptive programming to identify that object in your case .
systemutil.Run"iexplore.exe","http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/AutoComplete/AutoComplete.aspx" set WshShell = CreateObject("WScript.Shell") Browser("AutoComplete Sample").Page("AutoComplete Sample").WebEdit("ctl00$SampleContent$myTextBox").Set "dsfgdhsf" Wait 5 Browser("AutoComplete Sample").Page("AutoComplete Sample").WebEdit("ctl00$SampleContent$myTextBox").Submit Browser("AutoComplete Sample").Page("AutoComplete Sample").WebEdit("ctl00$SampleContent$myTextBox").FireEvent("onsubmit") WshShell.SendKeys "{ENTER}" Wait 10 WshShell.SendKeys "{DOWN}" WshShell.SendKeys "{ENTER}" let me know if any queries. Thanks Priyanka On Friday, June 28, 2013 9:58:56 AM UTC+5:30, pavani b wrote: > > > > Jun 22 > hai all > > Please anyone can write function for the follwing query(urgent) > > PFA....screenshot > > In the application i have an EDIT BOX ,where i have to enter SKU as > the user types PREDICTIVE LIST will come under the EDIT BOX. > I need to click on the item from the list based on the value entered > in edit box(ex:like google search) > whole list is identified as webelement. Each item in the list is > identified as webelement > > i am using send keys to pass the SKU webedit > > > > Thanks in Advance > Pavani > -- -- You received this message because you are subscribed to the Google "QTP - HP Quick Test Professional - Automated Software Testing" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/MercuryQTP?hl=en --- You received this message because you are subscribed to the Google Groups "QTP - HP Quick Test Professional - Automated Software Testing" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
