12-07-2011, 01:50 PM
Hi ,
I have a search text box in which when you type two characteres say 'te' whole list matching this appears say test,test1.. .In source code there is "onblur" event attached to this text box so i tried following
Problem is instead of setting the value in text box it is setting the value in browser title bar though i am specifically setting the focus to text box using "Browser("").Page("").Frame("").WebEdit("").Click" statement .
Please Help .
I have a search text box in which when you type two characteres say 'te' whole list matching this appears say test,test1.. .In source code there is "onblur" event attached to this text box so i tried following
Code:
Browser("").Page("").Frame("").WebEdit("").Click
Set WshShell = CreateObject("WScript.Shell")
wait (1)
WshShell.SendKeys "te"
wait(1)
Set WshShell = Nothing
wait 4
Browser("").Page("").Frame("").WebElement("innertext:=test","index:=1").Click
wait 2
Please Help .