Write a Script With descriptive programming(Without
Repository) to update an
Update an order in Flight App and verify whether it is done
successfully.(Use ChildObjects method)
Answers were Sorted based on User's Feedback
Answer / pallavi
set objdesc=description.create
objdesc("property").value="description"
objdesc("property").value="description"
objdesc("property").value="description"
objcoll=dialog().childobjects(objdesc)
for i=0 to objcoll.count-1
if objcoll(i).getroproperty("property")="description"
objcoll(i).click
exit for
endif
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / geetha
Set oW = description.create()
oW("micClass").value = "Window"
Set oB=description.create()
oB("micClass").value = "Button"
Set objs_child = window(oW).ChildObjects(oB)
For i=1 to objchild.count-1
If objs_child(i).getRoproperty("text")= "Update Order" Then
objs_child(i).click
Exit for
End If
Next
| Is This Answer Correct ? | 0 Yes | 0 No |
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
Explain the Keyword View ?
What are the advantages of QTP over WinRunner?
Inserting a Call to Action is not Importing all columns in Datatable of globalsheet. Why?
how to retrive that the number of spaces are in a string ????
How to open any application during Scripting in QTP?
how to write xml output check point bu useing descriptive programing .means without useing output check point
When we parameterise some field ex. Textbox is there any way that we can generate a specefic number of random values (For alphabetical values if possible) instead of manually entering values in the data table
What does Reporter.Reortevent2 does?
hello all i need some good sites or blogs which give info abt vb script with examples n real time scenarios.just like tutorials as i m new to qtp n vbscripting. its urgenttt
what is difference between analog and low level recording
What is the difference between QTP and WinRunner? Why do you choose only QTP for automation among remaing tools like Rational robot and silk test? Write the VBscript for any functionality in your project ? What is the cost of QTP ? If you entered into yahoo mail with your valid user name then you will get FOR EXAMPLE , " welcome to krishna " on the top of inbo page , how can you test it in QTP? What type of testing you can do, when we gave you 5 screens and how can you test that application? What type of framework you are using in your company and explain it?