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
Answers were Sorted based on User's Feedback
Answer / jay prakash
I didn't understood your question but i feel that you have
problem with finding unique properties during descreptive
programing among the same controls...
If my understandig is correct than Just try Index or
CreationTime (in case your app is web based).
Please let me know if it helps.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / jay prakash
try "index" it will work for windows applications.
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / ankur_jain
thanks Jay prakash for ur reply
U got my problem right but its not web based application
its desktop application and i cannot find any unique
property to identify the objects such as vbcombobox all the
vbcombobox on the page have the same property .I read
somewhere that we can add our own property to the test
object but i dont know how .SO please let me know if you
have any solution .Thanks in advance
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / babu
Hi Ankur,
Select the object in the object repository, and select the
icon where it will open you to see the mandatory and
assistive properties of the object. By using this you can
add the properties to the particular object whichever you
want to find some uniqueness.
I feel this answer may be usefull for your question.
Pls let me know if i am wrong.
| Is This Answer Correct ? | 1 Yes | 1 No |
I have enrolled for a QTP course which is a four weekend course.Do you think its a good way to start off learning this tool?What all do i need with me in order to become a pro at using this tool?
In qtp, explain what is qrs file?
How to use the object spy in quicktest professional 8.0 version?
What will be the output of the statements below? On error Resume Next Sum 100/0 if Sum= 0 Then msgbox "Pass" else msgbox "Fail" End If
What is use of object spy?
How to recognise the webelement and verifying that webelement is enabled?
I am just a beginner in QTP. Could any one explain me in detail how to automate adding two numbers and getting the result in QTP. Also I would like to parameterize the inputs. I have tried but getting an error like 'Can't use sub.....'(can't recollect the exact error)
What is LoadRunner?
In key word driven framework,we will rename the logical names of objects,why?
in which case & which method we can use "native" property of an object ?
What is a recovery scenario?
What is the difference between run time object and test object?