Can anybody send me the code to get the RO property of the
active screen in QTP while running?




Answers were Sorted based on User's Feedback



Can anybody send me the code to get the RO property of the active screen in QTP while running?..

Answer / anilkumar b j

Yes,We can get the active window name.
Var = Window("ForeGround:=True").GetROProperty("Title")
Msgbox Var

Is This Answer Correct ?    3 Yes 0 No

Can anybody send me the code to get the RO property of the active screen in QTP while running?..

Answer / kavitha

A=Browser("brname").page("pgname").wededit
("buname").getRoproperty("Text")
msgbox a

like u write the script...give browser
name ,pagename,buttonname...the value go a in run time
msgbox give the value
suppose in text box run time value is kavitha@gamil.com
msgbox dispaly kavitha@gmail.com

Is This Answer Correct ?    3 Yes 2 No

Can anybody send me the code to get the RO property of the active screen in QTP while running?..

Answer / kannan

thanks kavitha but again this is not the answer which i
need. see i dont know the what the browser name or page
name or any other properties. i just know the link name
which is in a website and when i cilck that particular
link a new page is opening and i dont know any properties
of the page like browser name,page name or anything.... i
need to QTP to find the particular active page properties
by itself during runtime

Is This Answer Correct ?    1 Yes 0 No




Can anybody send me the code to get the RO property of the active screen in QTP while running?..

Answer / shiva

Hi, You can get the Runtime object properties of the window
through object spy option in the tool.Follow below
navigation.
Toos--->Object spy--->Click on hand icon--->Show the widow
or your object--->You will get Runtime and Test object
properties.Check the radio button which ever you want and
click on the properties and methods buttons below it.

By doing so you can get the Runtime object properties.

Is This Answer Correct ?    1 Yes 0 No

Can anybody send me the code to get the RO property of the active screen in QTP while running?..

Answer / dip

Yes,We can get the active window name.
Var = Window("ForeGround:=True").GetROProperty("Title")
Msgbox Var

Seams like this is execuitable.

Is This Answer Correct ?    1 Yes 0 No

Can anybody send me the code to get the RO property of the active screen in QTP while running?..

Answer / tk

Hi Kannam

were you able to get what ua re looking for .I would
apprictiate any insghts into this .I am workimg with a .net
application and want to handle a window that comes up when
i click on a perticular link and the window name and its
properties can be totally different.

Is This Answer Correct ?    0 Yes 0 No

Can anybody send me the code to get the RO property of the active screen in QTP while running?..

Answer / kannan

hi,

Thanks for your response but i believe you havent
understand my question clearly.what i want is the code to
get the current active window's RO property.
for example, clicking a particular link in a webpage will
open a new window and i want to get the properties of that
window like name,title,hwnd but the problem is i dont know
any properties of that window till it open.

Is This Answer Correct ?    0 Yes 2 No

Can anybody send me the code to get the RO property of the active screen in QTP while running?..

Answer / shaik

Welcome to Cinemachance. The place where you can Show ur
Talent FREE of Cost. Get an instant access to aspiring &
established Indian actors, models, singers , music -
directors , dancers , directors , story / song writers,
cameraman , film-editors , production , technicians male
models under one roof . Actress and female models, preteen
models, teen models, kid models. If you have a dream to
become the one, then this is the right place for you. Just
See the Difference.This site is constantly viewed by movie
producers, casting directors, television commercial makers
,agencies.mail us your photos&videos email
mramnadham@yahoo.com 21\11\2008

Is This Answer Correct ?    1 Yes 3 No

Can anybody send me the code to get the RO property of the active screen in QTP while running?..

Answer / xyz

Get Ro property(object name)

we can not change the runtime propety but we can replace
one object in place of other
Ex...

Get Ro property (" text element")
webelement()object.text element = "XYZ"

Is This Answer Correct ?    1 Yes 10 No

Post New Answer



More QTP Interview Questions

I have java based application on my computer. Can I install QTP on it? What are system requirements for installing QTP?

3 Answers  


Hi..All I have installed QTP 10.0, and need to Automate SAP Application.....so i need to Install SAP Add-ins, anybady has SAP-Addins, Please help me, and thanks in advanced plese send it on my email id: sandipgami84@gmail.com Thanks, Sandip Gami +91-9714177088

1 Answers  


I am testing a website TheLancet in qtp 9.2 and running a script but its not working.Tell me if m doing anything wrong in the script. If Browser("TheLancet.com - Home Page").Page("TheLancet.com - Home Page").Link("Clinical").exists then msgbox "object exist" Else msgbox"object doesnt exist"

2 Answers   Rolta,


what are the limitations of smart identification in qtp 9.0

0 Answers  


Can anyone please explain me the process of automating an application using QTP as i am new to this?

1 Answers   Fidelity,






Approach for Installation,comaptibility,system testing

0 Answers   Diebold,


What are software testing metrics

3 Answers  


What is test object model in QTP?

1 Answers   Crea,


Hi all, what is the latest version of QTP?

20 Answers   CTS,


There are 3 types of frame works in QTP 1. Linear frame work 2. Modular frame work 3. Key word driven frame work. Can any body explain the above 3 frame work models. y2k_ram2000@yahoo.com

6 Answers   IBM, Wipro, TCS, Fidelity, GDS,


what is descriptive programming? what are the mandotory properties in qtp? what are libriry functions in qtp? what frame work you are using at your project? what is object repositery? what is our role as per qtp project is concerned as a software tester?

3 Answers   Wipro,


what properties do use to identify a browser and page while using descriptive programming?

3 Answers   TCS,






Categories