How to know from the script that whether the object is
custom object or virtual object?

Answer Posted / vijayan

for standard windows object the script will be like
button_press("OK"); -- for push_button

for vitural object the script will be like

button_press("OK_1"); -- for virtual push_button

so if any logical name of the object have underscore
symbol(_) followed by any interget then we can identify that
the object is vitural object

In physical description we can find one more attribute
called virtual:TRUE, this is we cannt find for the normal
standard windows objects

ex:obj_mouse_click("Agent Name:_1", 21, 13, LEFT);

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the two modes of recording?

603


How should we write and execute a user define function using WinRunner.

1648


How do you handle dynamically changing area of the window in the bitmap checkpoints?

622


two file is there how will compate it by useing qtp.

1678


What are the synchronization points?

665






How do you filter the objects in the gui map?

689


What is the use of gui map and what happens when the gui map file get loaded?

638


How do you copy and move objects between different gui map files?

659


How to check the background colour of the screen in WR?

1516


How do you handle unexpected events and errors?

615


What is the purpose of regexp_label property?

608


How do you find out which is the start up file in winrunner?

608


global sheet and external excel sheet how it will work

1426


hi this is uday iam trying for testing job with 3+ yrs of exp if u have qtp faqs materil plz send me thanks in advance

1605


How do you handle pop-up exceptions?

611