Micro Focus QTP (UFT) Forums
value in webedit.set for object disappears - 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: value in webedit.set for object disappears (/Thread-value-in-webedit-set-for-object-disappears)



value in webedit.set for object disappears - rhiohki - 03-07-2009

Hello all. Just wanted to say what a valuable resource this site has been. We've recently been using quick test pro here and are running into a strange issue and can't figure out what is going on.

QuickTest Version: 9.5
Add-ins installed: ActiveX, Java, Oracle, VisualBasic, .Net, WPF
Broswer: IE6
OS: Windows XP SP2


Basically we have a web application that has a list of names, userids, addresses, etc in columns and a grid field at the top of each data column by which we can filter the data. The grid field controls are actually implemented from Devexpress (devexpress.com) so it's third-party, as opposed to the whole web application itself we are testing which is developed in-house written in .NET

I'm recording a script where I enter in the desired value in the grid filter field, and then the grid updates automatically based on the filter criteria I enter. One thing I'm running into is that when the filter field is set to a certain value for example:

Code:
Browser("browser").Page("app").WebEdit("gridcontrol").Set "mark"
wait(2)

In my script, if a stop is placed by the wait, and then I run the script, I can see in my app as it's running that the criteria "mark" is filled in the grid search field and stays there.

If I take out the stop and run the script from the beginning, I can see the steps automate on my screen, but as soon as it passes the line where "mark" is set, it disappears from the grid field, but I need it to stay because I have other operations to test while the grid is filtered based on "mark"

I've tried the wait/waitproperty method. Tried descriptive programming but not getting anywhere. If anyone has any insight, I would grealty appreciate it.

Thanks


RE: value in webedit.set for object disappears - Ankur - 03-08-2009

Instead of .Set try using .Type