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 |
Explain types of output values?
Inserting a Call to Action is not importing all columns in Datatable of globalsheet. Why?
Action1: I have a value "test" stored in a variable X. I want to use that variable X in Action2 .. how?
Can I use datatable of Action1 in the Action2.
explain virtual object? in detailed? pls any one explain me?
Hello friends can anybody tell me about the architecture of QTP with diagram of it.this architecture is same for any domain like ERP/Banking/CRM/Healthcare or it's different then please tell me.thanks
i have doubt suppose iam purly working in manual, when i will get work to do on sql and performence testing? pls any one clarify doubt?
How to capture data from images in QTP and produce them in Excel sheet ?
Is it a smart choice to use QTP for backend testing?
Hi Suppose u have complex Test scripts which u vl write first and which u vl execute first
how to find that a file has been completely downloaded or not? I told that "download Complete" pop up. but he told the tool doesn't recognize the pop up
how we can take data in the username field text box into variable in web application explain with example and give all functions to get data into variables