I m trying to automate one vb desktop application in that
there is vblist vbcombobox many other vb tools are
there ,when i m trying to find some unique property to
identify the object (take example of vbcombobox ) I cannot
find any unique property, all the combobox belong to same
nativeclass same name no ids are available ,only the
distinct property is there x and y coordinates so i m using
some code like this
"vbbutton "nativeclass:=ThunderRT6CommandButton","x:=304","y
:=443").exist(2)" but i dont find them reliable .Can anyone
suggest me some other way to identify those objects with
some unique property or is there any way to register our
own property .I m using descriptive programming to write
the code .Thanks in advance

Answer Posted / nag

u can use index value
window().winbutton("index:=0").exit(2)

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the keyword driven framework for the window based application complete creation of library files,env file,test data,recovery file,excel file ,repository etc and as a test engineer how is ur approach

1608


How to suppress warnings from the test results page?

603


Hi all, I am using windows vista, I am in the process of learning QTP. When ever I try to work with insert mode in flight application , i am getting the error of 'Operation must use an update table query, fractional truncation(null) error. Can anyone help me regarding this?

1395


How can we conduct U-I Testing by using QTP??????

1429


can any body tell me how i create a simple script and apply output value on it .pls send me a step by step process

1287






What are the steps involved in the recovery scenario wizard?

559


What is the difference between rational rose and QTP?

1782


In an interview, what r the general questions asked in QTP? pls give me anwser to this question?

1419


Explain qtp(quick test professional)?

583


What are the advantages of parameterization ?

598


What are the main differences of qtp and win runner?

595


What is the use of "New Property" in "Add properties" of testobject properties in object repository. How can i use "New properties" while writing scripts if i have assign some values to the testobject properties Can anyone help me? plz

1478


How did you use regular expressions in QTP and also in WR?

2165


can any body clearly explain about keyword driven framework .give me the explanation for files what ever you use in this frame work?

1690


What is qtpro? What is quick test pro? What is a quick test professional?

595