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 different types of checkpoints?

621


What do you verify with the sync point for object/window bitmap and what command it generates, explain syntax?

617


What are the platforms that WinRunner can be used?

1604


Explain the winrunner testing process?

622


Explain the purpose of loading winrunner add-ins?

633






Explain the purpose of different record methods?

624


What is test parameter

1591


what is risk?

2087


what is the difference between toggle checkpoint and checkpoint?

4251


Difference between winrunner and test director?

664


When would you use 'set_window' and when would you use 'win_activate'?

707


The title of the window consists of date and time.What is the regular expression to recognize the window as unique?

1481


What is the use of gui map?

606


How can withwin runner to make single scripts which supports multiple languages?

610


What are the modes of script recording in winrunner ?

639