Thanks Ganadhar, the second option worked perfect
--- On Mon, 8/29/11, Ganadhar Chordia <[email protected]> wrote: From: Ganadhar Chordia <[email protected]> Subject: Re: autocomplete text -onkeydown To: [email protected] Date: Monday, August 29, 2011, 8:24 PM Hi Kiran, Try one of these... Browser("name").Page("name").WebEdit("textboxname").SetInput "textboxvalue" or Browser("name").Page("name").WebEdit("textboxname").Object.value = "textboxvalue" Cheers, Ganadhar +61 403 327 545 On Tue, Aug 30, 2011 at 12:27 AM, Kiran Ogeti <[email protected]> wrote: Thanks Ganadhar, but the first line of code.. value does not seem to be a qualifier for text box.. I tried and it says "object does not support" --- On Mon, 8/29/11, Ganadhar Chordia <[email protected]> wrote: From: Ganadhar Chordia <[email protected]> Subject: Re: autocomplete text -onkeydown To: [email protected] Date: Monday, August 29, 2011, 5:39 AM Hi, Try this code... Browser("name").Page("name").WebEdit("textboxname").value = "<<enter the value you wish to>>" wait(2) set wshell = Createobject("wscript.shell") 'insert line to click the text box... e.g., Browser("name").Page("name").WebEdit("textboxname").click wait(2) wshell.SendKeys "{DOWN}" wait(2) 'you will now see auto complete options displayed 'the following line will select the first option wshell.SendKeys "{DOWN}" 'the following line will move the focus to the next field wshell.SendKeys "{TAB}" Do let me know if this works... it works for my application on the auto complete fields... Cheers, Ganadhar +61 403 327 545 On Sun, Aug 28, 2011 at 10:50 PM, Kiran Ogeti <[email protected]> wrote: Hi All, My app got several auto complete text boxes (ex: when type in first 3 letters >> its going to bring up all names that match these three letters >> then use mouse down key to select the required one) I used Fire Event :onkeydown to select required value But ironically for some fields this event is not working .. any other alternative? Thanks -- 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 "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 "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 "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 "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
