04-10-2015, 09:52 PM
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.2. 3. 4.
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
Tried all these diff ways but none of them worked:
1.
Code:
Browser("abc").Page("abc").WebEdit("d-0184").object.value = "Corporation"
Code:
Browser("abc").Page("abc").WebEdit("d-0184").Set "Corporation"
Code:
Set WshShell = CreateObject("WScript.Shell")
Browser("abc").Page("abc").WebEdit("d-0184").Click
WshShell.SendKeys("Corporation")
Set WshShell = Nothing
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