Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Auto suggest WebEdit
#1
Not Solved
Hi all,
I am working on google search auto suggest webedit. I am able to display the auto suggest drop down but not able to select a particular item from the drop down. I used "Wscript.Shell" concept and sendkeys. But, it is not selecting any of the item.
SystemUtil.Run "iexplore.exe","https://www.google.co.in/"

Code:
Browser("title:=Google.*").Page("title:=Google.*").WebEdit("name:=q").Set "a"

wait(2)

Browser("title:=Google.*").Page("title:=Google.*").WebEdit("name:=q").fireevent "onkeydown"

Set WshShell = CreateObject("WScript.Shell")
WshShell.SendKeys "{DOWN}"
WshShell.SendKeys "{DOWN}"
WshShell.SendKeys "{ENTER}"
set WshShell = nothing
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Frames Auto-Incrementing In The Repository zunebuggy 0 1,205 11-15-2017, 10:18 PM
Last Post: zunebuggy
  Auto Complete list not displayed in PEGA7 adityacharan 0 2,415 11-29-2015, 12:07 PM
Last Post: adityacharan
  Auto save in QTP kalaivanan123 0 2,819 11-12-2013, 12:58 PM
Last Post: kalaivanan123
Big Grin QTP 10 not detecting Elements from auto suggest listing Sanjay_aggarwal 1 2,824 07-16-2013, 02:35 PM
Last Post: ssvali
  Please suggest me some books to learn vbscript basics for qtp GSuba 0 2,550 04-17-2011, 08:53 PM
Last Post: GSuba

Forum Jump:


Users browsing this thread: 1 Guest(s)