Hello,
I need help in capturing text output value in Descriptive Programming(DP). So far I capture it record and play back mode. But I want to capture it without recording in DP way. If anyone knows pls share with me.
Thanks,
Mohammad Azad
sdazad@gmail.com
10-31-2011, 09:38 AM (This post was last modified: 10-31-2011, 09:52 AM by ravi.gajul.)
Hi ,
Please post the error message.
And warnings in QTP are cautions and not errors.A test can pass though there are warnings. For example, warnings are seen in the result when smart identification in invoked for object identification.However its a passed test case
Hi'
Here is the error message. Infact I am trying to capture dynamic numeric value from webpage.
message:
Cannot identify the object "[ WebElement ]" (of class WebElement). Verify that this object's properties match an object currently displayed in your application.
Line (58): "DataTable("MPI","Global")= Browser("micclass:=Browser").Page("micclass:=Page").WebElement("html tag:=H3","outerhtml:=<H3>$2,997.75</H3>").GetRoProperty("innertext")".
10-31-2011, 12:40 PM (This post was last modified: 10-31-2011, 12:45 PM by ravi.gajul.)
Yes there is a problem with the code and we can capture the dynamic values from webpage using DP.
In the above code outer html value has got special characters so we cannot directly give its value in the code .It should be normalised.However there could be other properties to uniquely identify the WebElement.Try using other properties like html id.If you are unable to determine such properties
Please post the obj spy snapshot of the web element so that I can help you determine the same.
Note: It need not be innertext always.Look for the property name thats holding the value you want to fetch and give its name in
.GetRoProperty("<name of the property holding the value required by you>")