In a page i have N number of links at a time i would like
to open those links by using QTP?how to do that?
Answers were Sorted based on User's Feedback
Answer / hokrani
Set ObjLink=Description.Create
ObjLink("micclass").value="Link"
Set PageLink= Browser("..").Page("..").ChildObjects(ObjLink)
For i=1 to PageLink.count
PageLink(i).Click
Next
| Is This Answer Correct ? | 7 Yes | 1 No |
You can get it by first create description object like :-
set deslink = description.create()
deslink("micclass").value = weblink
then you can use this variable to get number of link in the
page like.
set bro = browser(" ").page (" ")
set countlink=browser(" ").page("
").weblink(deslink).childobjects
for countlink = 0 to countlink-1
bro.weblink(deslink).click
next
| Is This Answer Correct ? | 3 Yes | 3 No |
i have batch scripts in qtp and i want to update the status like pass/fail in excel sheet after excecuting the every script in batch.how to write the script for this?
What is ObjectParamater?
Hi there, I've installed a trial version of QTP to see if it works with my product but I cant automate selecting windows from a tree view? Can anyone give me any pointers? Many Thanks
in a web page How to check and display a particular word from a paragraph?
wt is memory leakage?
What is output value?
object types is used for what?
How you automate test scripts
What is the difference between a Function and Procedure in QTP?
How to open a new test using quicktest professional?
Is it possible to refer the same object for referring more than one object that are of different class using the descriptive programming approach? Suppose my code is 'To create the object named as obj Set obj=Description.Create() 'To define the values obj("title").value="IE" obj("type").value="text" obj("html tag").value="INPUT" 'To set the value Browser("IE").Page("Yahoo").WebEdit(obj).Set "xyz" Can I refer the "obj" object for the three objects like Browser,page and webedit objects? If so how?
How software tester can use constants and variables in scripts?