Micro Focus QTP (UFT) Forums
.SET method not working in WEBEDIT - 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 Others (https://www.learnqtp.com/forums/Forum-UFT-QTP-Others)
+--- Thread: .SET method not working in WEBEDIT (/Thread-SET-method-not-working-in-WEBEDIT)



.SET method not working in WEBEDIT - Achuth - 04-14-2014

Hi all,

I am not able to set values on webedit using .SET method.
My requirement is to enter a value in the webedit then based on the value entered corresponding options are displayed(not dropdown) and need to select an value from option.
I am enetring the value in webedit using send keys and selection an value in the options displayed again using send keys.
Is there any better option rathen than send keys option.
Please Help.

Thanks & Regards,
Achuth Rao


RE: .SET method not working in WEBEDIT - Ankur - 04-14-2014

Just before the .Set statement Use
Code:
Setting.WebPackage("ReplayType") = 2 ' This will simulate actual Mouse and keyboard

After the .Set statement change it back to events type

Code:
Setting.WebPackage("ReplayType") = 1 ' This is the default setting (events)

If this doesn't work use FireEvent to fire the corresponding event once you have done the .Set operation.


RE: .SET method not working in WEBEDIT - Achuth - 04-15-2014

Thanks Ankur for the reply.
I have tried with "ReplyType" settings. I am able to set the value in the editbox but i am got getting the options(like dropdown) to select the value.
For ex. if is set QTP in editbox a dropdown kind of thing appears in below editbox with values corresponding to the value set and i need to select a value from the options.
When i set the value with .set method i am not getting the dropdown but when i use send keys i an able to get the dropdown.
Is send keys option reliable?

Thanks and Regards,
Achuth Rao


RE: .SET method not working in WEBEDIT - XAnna - 11-23-2016

Hii There,

I am also facing similar issue in UFt ands my requirement is also similar. Could anyone resolved the issue? please do help.