Micro Focus QTP (UFT) Forums
To retrieve content of a WEBEDIT object - 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: To retrieve content of a WEBEDIT object (/Thread-To-retrieve-content-of-a-WEBEDIT-object)



To retrieve content of a WEBEDIT object - alpha1 - 06-09-2015

Hi all !
I am new to the forum & started learning QTP few days back. I want to know how to store value entered in a webedit box duting recording, in object repository. I entered value 'XY' in google search box. It showed up as

Code:
Browser("Google").Page("Google").WebEdit("q").Set "XY"

However, in OR property "value" is blank.

On other hand, if I manually add this WebEdit object means Google Search box using ' 'add object to local' button then GetTOproperty gives me value as XY(though getROProperty still gives property "value" as blank)


Please tell me why value entered in webedit box during recording doesn't get stored in OR.

Thanks for help !


RE: To retrieve content of a WEBEDIT object - 22sumit - 06-10-2015

OR is meant to store the properties of the objects in the AUT.
It doesn't store the values that u enter in the Webedit elements (maybe that's how its designed).
However as u mentioned,, u can always get the values using the GetROProperty() method.


RE: To retrieve content of a WEBEDIT object - vinod123 - 06-11-2015

Just use Standard Output Value to get the value of the webedit field you should not write the statement directly

Steps :-

1. Click on Record
2. Select Insert and Select Output Value
3. Select Standard Output Value and after selection it will create standard Output Value Statement automatically