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 |
Hi, i am rani ,i am putting 1+years of fake exp ,so pls anyone explain how i get project (in real time) ? how it is tested ex: in banking ,test the number of textboxes in one window
Write the vb script for the lowest and highest values of an array?
How to break the object spy ?
What is the difference between keyword driven frameworkd and Modularisation framework?(Chandana)
How reliable are the site's Internet connections required to be? And how does that affect backup system or redundant connection requirements and testing?
hi,which is the best book to refer QTP 9.2 and Faq's.
what is defination of regression testing?
Give me diffrent script in QTP for Webpage(Java and .Net),WindowsBased Applications,Java application,.Net application...
How can you identify the browser and its information using QTP script?
What is creation time property and how does it work?
WHAT IS THE USE OF "FUNCTION GENERATOR" IN QTP?
How can we display the names of the buttons in the toolbar of a webpage