1. Pls can anyone give me the descriptive programing
script to find the number of edit boxes in a login window
in flights reservation (windows application only not web).
2. Using descriptive programing, how do you handle
changing URLs. Pls anyone, very urgent
Answers were Sorted based on User's Feedback
Answer / hemakumar.m
1)Answer
Dim oEditDesc
Set oEditDesc=Description.Create()
oEditDesc("micclass").value="WinEdit"
a=Dialog("text:=Login").Childobject(oEditDesc).Count
Msgbox a
Is This Answer Correct ? | 3 Yes | 0 No |
Try this...
Set obj_edit = description.Create
obj_edit("nativeclass").value = "Edit"
Set EditDesc = dialog("Login").ChildObjects(obj_edit)
msgbox "Number of Edit Fields : "& EditDesc.count
For i = 0 to EditDesc.count - 1
EditDesc1 = (EditDesc(i).getROProperty("Attached Text"))
msgbox EditDesc1
Next
Is This Answer Correct ? | 2 Yes | 0 No |
I encountered with very strange problem in qtp while writing the script i written the code window"regexpwndclass:=XLMAIN").window"regexpwndtitle:=Open" ).Exit this code was working fine for about 10-15 times i executed the script but after some time qtp started giving the error with the same code the error is "Object doesnt support this method or function window(...).window(..)" then i modified the code with only window"regexpwndtitle:=Open").Exit in place of window"regexpwndclass:=XLMAIN").window"regexpwndtitle:=Open" ).Exit now again its working fine i cannot understand what thing is creating the problem if same code executed successfully in starting for about 10 times then why it is giving the error now can anyone give the reason .
I want to export the datasheet to excel.Instead of total file it exports only data without headers.How to solve this problem?
what is the diffrence between script and Language ? (Chandana)
setroproperty and getroproperty difference
What is the quicktest professional (qtp) testing process?
What is meant by Step Generator in Qtp How is it used? pls gimme in detail
hi i have one issue while automating the script using QTP i want scrool down .i cannot do even using scrool down methqad is not working .the object will take WebElement plz is there any code help me
Can i run the qtp, without OBJECT REPOSTIRY...
WHAT IS THE FUNCTION (HOW TO DO) THE BATCH TESTING IN TEST DIRECTOR USING MANUAL TESTING PROCEDURE?
What are the types of object repository in qtp?
Where virtual objects stores results?
what is the script for keyword driven framework in real time?plz its urgent