Follow Our FB Page << >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...

How to capture dynamic objects in qtp like mark up text

Answers were Sorted based on User's Feedback

How to capture dynamic objects in qtp like mark up text..

Answer / sanju

by usng smart identification method or by using descriptive

Is This Answer Correct ?    6 Yes 4 No

How to capture dynamic objects in qtp like mark up text..

Answer / deven

To capture the value of a dynamic object in a web
application GetROProperty method is executed. In order to
capture the value of an object and that too of a dynamic
object then we will use the GetROProperty which means Get
Run Time Object Property and we need to decide which
property we want to capture. This can be text innertext etc.

I would list down a sample code for gmail to count unread
emails from any account.

Since the inbox count is dynamic and ever changing from
account to account i have used descriptive programming so
that this piece of code can be run for any gmail account.

The prerequisite is that you log in to your gmail account
and then run this script

This script prints the number of unread emails in the inbox.

inboxcount = Browser("title: Gmail.*").Page("title:
Gmail.*").Link("innertext: Inbox.*").getroproperty
If inboxcount = "Inbox" Then
Print "No Unread Emails"


emailcount = replace(inboxcount, "Inbox","") 'replaces
inbox with space
emailcount = trim(emailcount) 'removes all the spaces
emailcount = replace(emailcount, "(","")
emailcount = replace(emailcount, ")","")

Print "You have "&emailcount& " unread emails in your inbox"

End If

Is This Answer Correct ?    1 Yes 0 No

How to capture dynamic objects in qtp like mark up text..

Answer / kiran


Is This Answer Correct ?    3 Yes 6 No

Post New Answer

More QTP Interview Questions

Hi, I Install QTP 9.2 in windows Vista. but it is not supporting IE. it is supporting only windows based application. could I change any setting in Vista for supporting IE.. ?? thanks in advance...

2 Answers  

how can we retrieve ten rows from the data table using loop concept?

4 Answers  

Consider one application is open, clicking one menu will open another application in another browser. QTP does not catch the URL of the second browser(second application). can we capture it ?

0 Answers  

Anybody explain me, the concept of checkpoint declaration in the QTP mainly for the Objects, Pages, Text and Tables ?

1 Answers  

Thanks Rag... One more question, How we test the dynamic images which frequently changed?Using the bitmap checkpoint r any other options available.... Can u give the steps pls... Thanks

1 Answers  

What are the general steps involved in the data driven framework?

0 Answers  

Can we record using all the modes in a single script? Explanation with example is appreciated

0 Answers  

Hi any body can tell me the synchranization point syntax thanks in advance

6 Answers   AppLabs,

How to handle run time errors?

9 Answers  

in qtp how we work with out put values and what is the process?

4 Answers  

Hi Guys, I tried to install java add-in for QTP 9.5 after the whole installation but it didn't install but then i also found in documentation saying that winrunner7.6 patch for java plugin would work fine with QTP. But when i tried to install from winrunner7.6 it asks me for the path of winrunner So my question is are we supposed to install winrunner for java add in to work on QTP. Please suggest me

1 Answers  

What are the recording modes in qtp?

0 Answers