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 Posted / 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 |
Post New Answer View All Answers
What are the types of object repositories? Which one is you using?
Print the Prime numbers in below format only up to 20(Need commas also) 1,2,3,5,7,9,11,13,17,19
HI, pls help me on this, iam not able to capture getcelldata value in javatable... msgbox javawindow("").javatable("").getcelldata(3,3) but it diaplays empty...
What are the ways you can synchronize?
In an interview, what r the general questions asked in SQL which is realted to testing ?pls give me anwser to this question?
How can I import environment from a file on disk?
Hello friends..... On which areas of an application we can not test with QTP
When should I use smart identification?
How does qtp recognize objects in aut?
What are the disadvantages of recording test cases in qtp?
what is the difference between rational rose and QTP? WHICH TOOL IS BETTER TO LEARN? PLEASE SEND ME AT sana_50218@yahoo.com sandeep@epuratech.com
To which environments does quicktest professional (qtp) supports?
How to execute the WR Script through QTP? I have WinRunner script with initialization script, common scripts, GUI AND functions. I connected WR through QTP with "call to WinRunner" option but I am getting problem after connecting to WinRunner i.e. showing "Do you want to quit now" with 'yes' and 'No' message box
How to data driven test for Win objects in QTP ?
how will you check how many members visited the website www.infosys.com?