Micro Focus QTP (UFT) Forums
Inserted WebEdit value is not sticking in UFT during playback - 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: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Inserted WebEdit value is not sticking in UFT during playback (/Thread-Inserted-WebEdit-value-is-not-sticking-in-UFT-during-playback)



Inserted WebEdit value is not sticking in UFT during playback - priyaUFTlearner - 04-10-2015

My application has a dropdown, UFT is recognizing it as WebEdit. I am able to record dropdown but during playback inserted value is not sticking. Getting cleared as cursor moves out of that field.

Tried all these diff ways but none of them worked:

1.
Code:
Browser("abc").Page("abc").WebEdit("d-0184").object.value    = "Corporation"
2.
Code:
Browser("abc").Page("abc").WebEdit("d-0184").Set "Corporation"
3.
Code:
Set WshShell = CreateObject("WScript.Shell")
    Browser("abc").Page("abc").WebEdit("d-0184").Click
    WshShell.SendKeys("Corporation")
    Set WshShell = Nothing
4.
Code:
Setting.WebPackage("ReplayType") = 2
    Browser("abc").Page("abc").WebEdit("d-0184").Set "Corporation"
    Setting.WebPackage("ReplayType") = 1

None of above codes are throwing any error but during playback value is not sticking into the field. Getting cleared out after exiting that field.

Can someone suggest me any diff approach?

Thanks,
Priya


RE: Inserted WebEdit value is not sticking in UFT during playback - Sreeni.lutukurthy - 04-13-2015

try

Code:
WshShell.SendKeys "Corporation"
    wait(1)
    WshShell.SendKeys "{DOWN}"
    'wait 2
    WshShell.SendKeys "{ENTER}"
    wait 2
    WshShell.SendKeys "{TAB}"
    Set WshShell = Nothing

even i have the similar issue , it worked for me.


RE: Inserted WebEdit value is not sticking in UFT during playback - babu123 - 04-13-2015

Code:
WshShell.SendKeys "Corporation"
wait 2
WshShell.SendKeys "{TAB}"
Set WshShell = Nothing

check this tooo


RE: Inserted WebEdit value is not sticking in UFT during playback - priyaUFTlearner - 04-14-2015

Thanks Babu, this code worked for me.

Thanks,
Priya