Hi..friends can anybody write the script for this question...
Am having some 20 nos of links in a web application, i want
to click some 5,13 & 17th links. So please....can anybody
give the answer....???
-->Hani<--
Answers were Sorted based on User's Feedback
Set obj_Link = Description.Create()
obj_Link("micclass").value = "Link"
Set it_Link =
Browser("micclass:=Browser").Page("micclass:=Page").ChildObjects(obj_Link)
For i = 0 to it_Link.count-1 step 2
it_Link(i).Click 'it click +2,4,6....
Next
| Is This Answer Correct ? | 5 Yes | 1 No |
Set obj = Description.Create()
obj("micclass").value = "Link"
Set x =Browser("micclass:=Browser").Page("micclass:=Page").ChildObjects(obj)
for x= 1 to x.count
if x(i)=5 OR 13 OR 17 Then
x(i).Click
end if
Next
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / srikanth
Set obj = Description.Create()
obj("micclass").value = "Link"
Set x=
Browser("micclass:=Browser").Page("micclass:=Page").ChildObjects(obj)
msgbox x.count
for i=0 to x.count-1
if x(i)= 5 OR 13 OR 17 Then
x(i).Click
end if
Next
| Is This Answer Correct ? | 0 Yes | 1 No |
I m new to QTP? Is it necessary to know VB for learning QTP for Automation? Can I understand QTP excellently Without practical automation?
QTP Testing Process?
What the differences are and best practical application of each.
I have enrolled for a QTP course which is a four weekend course.Do you think its a good way to start off learning this tool?What all do i need with me in order to become a pro at using this tool?
Qtp Automation Engineer , Can he login in VSS? What purpose he login In VSS? But Some companys are using CVS AND VSS ? some are Have log in in VSS Some Not login(not accessing) into VSS, not login persons are working on CVS? my doubt is, can Qtp automation engineer have loin in VSS or not? Where he store QTp Script?
wt is memory leakage?
Pls let me know completely about descriptive programming, where it is used, pls explain with a real time example of its occurence and the program code written in qtp.
In descriptive programming how we know the properties of the objects, if application is not developed and the prototype of the application is also not developed.
How many types of Automation frameworks are there in UFT? Describe them.
What kinds of security (firewalls, encryptions, passwords, etc.) will be required and what is it expected to do? How can it be tested?
WHAT IS PARAMITARIZATION?
In where you are keeping or maintaining shared object repository (file)in your appliction?