Micro Focus QTP (UFT) Forums
Send key method does not set value on webEdit object. - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: Send key method does not set value on webEdit object. (/Thread-Send-key-method-does-not-set-value-on-webEdit-object)



Send key method does not set value on webEdit object. - sandeep arora - 12-07-2011

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

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
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 .


RE: Send key method does not set value on webEdit object. - verma.vik6 - 04-05-2012

Code:
Browser("").Page("").Frame("").WebEdit("").object.focus

Try this..