Micro Focus QTP (UFT) Forums

Full Version: To retrieve content of a WEBEDIT object
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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 !
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.
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