Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Inserted WebEdit value is not sticking in UFT during playback
#1
Not Solved
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
Reply
#2
Not Solved
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.
Reply
#3
Not Solved
Code:
WshShell.SendKeys "Corporation"
wait 2
WshShell.SendKeys "{TAB}"
Set WshShell = Nothing

check this tooo
Reply
#4
Not Solved
Thanks Babu, this code worked for me.

Thanks,
Priya
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Playback causes different behavior than manual RandomGrin 1 1,959 12-24-2012, 01:58 PM
Last Post: elango87
  Doesn't recognise parent window during playback Derben 2 3,543 03-20-2009, 08:04 PM
Last Post: Derben
  Cannot Playback my script-getting general Run Error rajeshvelur 2 3,619 10-23-2008, 06:57 PM
Last Post: anemuday
  Actions recorded in IE 6 won't playback in IE 7 Steve Groves 4 3,436 10-07-2008, 10:11 AM
Last Post: Ankur
Shy Problem in Playback alok.mahajan 1 2,179 08-26-2008, 02:29 AM
Last Post: myqtp

Forum Jump:


Users browsing this thread: 1 Guest(s)