Hi Friends,
I have an application that is having some options to
choose. While doing business transaction I need to select
one option among from available options. But here the thing
is, we won't get one option which we've chosen already and
the available options will get automatically from the
system with time basis, moreover each and every option
having with various label names respective to that option.
So obviously if I run my recorded script will automatically
gets fail, even though it got pass at first time.
Could anyone please give me appropriate solution for this.
I would be greatly obliged with you if you give the
solution as soon as possible.
Answer / sunil kumarvv
Hi,
First of all You can spy for particular objects and write
the Descriptive programming.Suppose If The type of Object
is WebRadio Button.
Set pBrowser=Browser
("micclass:=Browser","CreationTime:=1").Page
("micclass:=Page")
Set sObj=Description.Create()
sObj("micclass").Value="WebRadio"
sObj("html tag").Value="INPUT"
Set sLink=iBrowser.ChildObjects(sObj)
sCount=sLink.Count()
For i=0 to sCount-1
sName=sLink(i).GetRoProperty("name")
If sName=Expected Value Then
sLink(i).Select "1"
Exit For
End If
Next
Use this Code.
| Is This Answer Correct ? | 4 Yes | 0 No |
How to add multiple values in rows, under a single column of a run time datatable?
Analyzing the Checkpoint results ?
how to insert QTP to display errors and other description in the test results instead of halting execution by throwing error in the mid of executin due to an error (for object not found)?
What is the use of low level recording? How does it useful?
How to data driven test for Win objects in QTP ?
How to save your test using quicktest professional?
How many types of Recordings are there in QTP and what are they?
7 Answers Dangote, First Indian Corporation,
We developed 100 descriptive programms and put in running, in the midle if any descriptive program is stucked with some error? what will happend weather it will execute the remaining prg's or it will terriminate ?
Explain qtp(quick test professional)?
how to merge 2 object repositories in qtp 9.0.what is use of merge and y merge is used?
Syntax for how to call one script from another? and Syntax to call one "Action" in another?
If 2 gmail browsers are opened in our system, how to enter the mail id and password into second browser by using discriptive program?