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

What should we say if interviewer asks "What is ur project architecture?".......Can any one help me with clear information.?????????

0 Answers   Infotech,


can u please explain what r the challenges u faced in ur automation testing

2 Answers   Genpact,


WHAT IS THE FUNCTION (HOW TO DO) THE BATCH TESTING IN TEST DIRECTOR USING MANUAL TESTING PROCEDURE?

1 Answers   CTS,


This is Ajay i have few douts if anybody know pls give me reply. 1. i have opend 2 gmails i am working with 1 gmail i want to close other gmail by usig script. 2.i have 10 links in a page all of them have same properties& names i want to click on 5link by using script. 3.i have one combobox in that i want to see all the citynames in the combobox and i have to check weather hyderabad is present or not. 4. size of objectrepository. 5.what r problems we get during writing the script. 6.is it possible to compare to excel sheets in qtp if possible wht is the script. 7.example for lowlevelrecording

3 Answers   Symantic Space,


what is the advatages of merging of object repositories in Qtp9.0

3 Answers   TCS,






How can i use Ordinal identifiers and Smart identification methods suppose i want to know the index no of check box

1 Answers  


What is Object Spy?

8 Answers  


I am facing an issue of object identification with the dropdown element of DHTML grid. When I tried to recognize these different dropdown objects, QTP identifies only one object for all the dropdowns. Hence, selection of different data from different dropdowns list is an issue. To overcome this problem, i have used Descriptive Programming technique by creating different object descriptions which have all the other properties same but differ only in one property i.e. ‘X’ location of the element on the screen. Hence, i have created distinct object descriptions that would allow us to select values in different dropdowns. The code is given below. But still I am unable to identify distinct dropdown objects. ‘Object Description for Dropdown Cell Status Set objCellStatus = Description.Create objCellStatus("micclass").value = "WebList" objCellStatus("name").value = "select" objCellStatus("x").value = 219 ------ ‘X’ Axis value for cell status drop down ‘Object Description for Dropdown Sub Segment Set objSubSegment = Description.Create objSubSegment("micclass").value = "WebList" objSubSegment("name").value = "select" objSubSegment("x").value = "319" ------ ‘X’ Axis value for sub segment drop down Please help... This is specific to DTML grid(Drop down object)

0 Answers  


Is there a function to find the number of occurrences of sub strings within a string?

1 Answers  


What is Maximum synchronization time out in QTP(By Default is 20sec). Anybody can answer it. Thanks in advance.

11 Answers   Polaris,


What is the Risk Analysis? Waht types of risk analysis are there?

1 Answers  


WHO TAKE DECISION TO RELEASE THE BUILD

2 Answers   IGT,






Categories