Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
city Autosuggest
#9
Solved: 10 Years, 10 Months, 1 Week ago
Hi,

Please find the below code. It worked for me, hope same 4 u 2 Smile

'Comment: Add the txtBox city in OR and go for fire eventon click which will display the auto suggest list
Code:
Browser("abc").Page("xyz").WebEdit("qwe").FireEvent "onclick"
Set WshShell = CreateObject("WScript.Shell")

wait (1)
'Comment:Enter the initialsfor the city like for Mumbaiwrite mum, for kanpur write Kan
Code:
WshShell.SendKeys "Nag"


Code:
wait(1)
Set WshShell = Nothing
wait 4
'Comment: Pass the complete nameof city under Text
Browser("abc").Page("xyz").Link("html tag:=A","text:=Nagpur","index:=0").Click

Let me know in case of any help required.

Regards,
Sankalp
Reply


Messages In This Thread
city Autosuggest - by sia sharma - 06-19-2012, 04:46 PM
RE: city Autosuggest - by sshukla12 - 06-19-2012, 05:13 PM
RE: city Autosuggest - by sia sharma - 06-20-2012, 11:38 AM
RE: city Autosuggest - by sshukla12 - 06-20-2012, 01:36 PM
RE: city Autosuggest - by sia sharma - 06-21-2012, 10:45 AM
RE: city Autosuggest - by sshukla12 - 06-21-2012, 01:46 PM
RE: city Autosuggest - by ssvali - 06-21-2012, 02:27 PM
RE: city Autosuggest - by sshukla12 - 06-21-2012, 03:31 PM
RE: city Autosuggest - by sshukla12 - 06-22-2012, 10:42 AM
RE: city Autosuggest - by sia sharma - 06-22-2012, 02:16 PM
RE: city Autosuggest - by sshukla12 - 06-22-2012, 02:40 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)