Micro Focus QTP (UFT) Forums
how to enable 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 Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: how to enable webedit (/Thread-how-to-enable-webedit)



how to enable webedit - satishkumarm - 05-24-2011

In my application webedit is disabled and unless i click on that particular text field i cannot edit the value..for windows application as far as i know i think we can use " Type micTab"

Please suggest me the solution for webapplication

As shown in the screenshot mouse cursor is pointed to MR NO field and i want this should set to First Name field and then i must proceed editing the values further..


RE: how to enable webedit - sundari.msls - 05-25-2011

I think FireEvent "Click" for the webedit "First Name" works


RE: how to enable webedit - satishkumarm - 05-25-2011

Fireevent mouse click is not working here...


RE: how to enable webedit - vIns - 05-25-2011

Hi,
Can u plz try this ...either of these should work

Code:
Browser(..).Page(..).WebEdit("firstname").FireEvent "onkeydown"

or
Code:
Browser(..).Page(..).WebEdit("firstname").Object.Focus



RE: how to enable webedit - satishkumarm - 05-26-2011

Hi vIns...Thanks for the reply..i have used both the properties/methods but its still not working..

screenshot attached for reference


RE: how to enable webedit - vIns - 05-26-2011

Hi..
The above method will work fine to set the focus. But the error message says that the textbox itself is disabled.
is it possible for u to attach the HTML source code of the page / just for the firstname control?



RE: how to enable webedit - sundari.msls - 05-26-2011

Try this:
Code:
Browser("").Page("").WebEdit("").FireEvent "ondblclick"



RE: how to enable webedit - satishkumarm - 05-26-2011

Hi VIns...please find the attachment




RE: how to enable webedit - vIns - 05-26-2011

Dear Satish,
You seem to have those controls inside the frame and you havent attached the corresponding source code.
But from the error message, the textbox seems to be readonly.

Plz try this ..If it does not work..I m sorry.

Code:
Browser(..).Page(..).Frame(..).WebEdit(..).Object.readonly = false



RE: how to enable webedit - satishkumarm - 05-27-2011

Hi VIns..i'm sorry as right click is not working in the particular page..its working only in the top menu...thatz the reason i have attachd incorrect file

anyway thanks...