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 |
Hi could some one explan what is the use of the function Defination generator, And how to use the function defination generator.. Explan with the example..
How u send bugs to dev'lpment team all at once or one by one or waht is the process?
Explain about Table and DB Checkpoints?
What is the difference between qtp and selenium?
Thanks....But can u tell me how i use the QTP for GIS with one Example...
what questions i have to pripare for project manager round interview ? plz give Ans.(Chandana)
how will you handle the situation when object is not caputred during record?
who is the best faculty in Hyderabad for QTP?
what are SetToProperty, SetROProperty,GetToproperty scripting?
write a vb script to print even numbers from 1-50?
6 Answers Kclink Technologies, Logica CMG,
Is there any pdf or online book for QTP Scripting? Let me know more about QTP Scripting.
how to pripare BRS/FRS Document for different projects?