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 |
pls tell me different type of automation frame works in QTP and which one need to select in client server application
Could someone explain me how to work on Out put values, explain with some example on Flight Reservation. I want to insert the out put value for the order No. Please explain the steps with some example.
what is reusable action and how the same can be implemented (process)?
what you mean by artifact,milestone...
can any boby tell me what is method or steps to connect the remote desk top by using QTP 9.2 version?
Can someone tel additonal features which has been included under QTP 9.0 which is not there in 8.2 version?
A web Page has a webtable with four columns and four rows. The first column is of ID and has values of 100,100A,A100,100y Find out the number of rows whose ID starts with 100. Similarly the last column is 'number of links'. Each row in the last column has values like link1,link2,link3 etc Find out the number of links where id is 100
How will u declare a variable to access multiple actions? a)Dim b)Global c)Public d)Private
how to open Excel sheet & write in it & save it?
How to supress warnings from the "Test results page"?
Basically why we need testing?
How to do the scripting. Is there any inbuilt functions in qtp as in qtp-s. What's the difference between them? How to handle script issues?