Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
output check point
#1
Not Solved
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
Reply
#2
Not Solved
Code:
DataTable("A",dtGlobalSheet)= Browser("name:=Google").Page("title:=Google").WebElement("html id:=addlang").GetRoProperty("innertext")
The above code is an example to get text from google main page
Reply
#3
Not Solved
Hi,
Thanks for reply. But It didn't work. Its giving me error message.

By the way, what is warnings in QTP result? is it error or caution?

Thanks once again.
Azad
Reply
#4
Not Solved
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

Regards,
Ravi
Reply
#5
Not Solved
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")".

Thanks,
Azad
Reply
#6
Not Solved
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>")
Reply
#7
Not Solved
Hi,
Try this
Code:
Browser("xxx").Page("xxx").WebRadioGroup("xxx").Output CheckPoint("checkpoint 1")

Where checkpoint 1 values will call the datasheet parameter value.

Regards,Ram
Reply
#8
Not Solved
Hi,
I have enclosed the object spy snapshot. I cropped it so that it can fit in uploadable size.

Thanks and regards,
Azad


Attached Files Image(s)
   
Reply
#9
Not Solved
Hi Azad,

sorry, but till now i could not get what you are trying to achieve!!

If you can explain your scenario a bit, it would be better for me to resolve ur query.

Regards,
Ankesh
Reply
#10
Not Solved
Hi Ankesh,
My intention is to capture dynamic output values from a web page using descriptive programming. I was trying following way-

Code:
Datatable.GlobalSheet.AddParameter"MPI",""
DataTable("MPI","Global")= Browser("micclass:=Browser").Page("micclass:=Page").WebElement("html tag:=H3","outerhtml:=<H3>$2,997.75</H3>").GetRoProperty("innertext")

But, I am not able to capture that value in data table or any variable. I have enclosed the screenshot of properties and values of that object.

Regards,
Azad


Attached Files Image(s)
   
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  table output values shipu 1 2,243 01-24-2014, 10:06 AM
Last Post: supputuri
  Type Mismatch:Check point while using DP Uma 0 3,668 09-07-2011, 05:26 AM
Last Post: Uma
  How can I output table values and see them Mala 0 3,066 03-05-2011, 01:32 AM
Last Post: Mala
  How to retrieve value of a text output? paulwesterman 2 15,735 01-14-2011, 05:56 PM
Last Post: paulwesterman
  How to use output values. upadhyay40 2 4,067 12-15-2009, 12:52 PM
Last Post: upadhyay40

Forum Jump:


Users browsing this thread: 1 Guest(s)