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 |
How can we add regular expression for date field (dd/mon/yyyy)?
If a object property is changed in the application. where it should be updated in QTP... Pls anybody can give the answer.. Thanks in advance...
Does QTP support Linux Red Hat? Does QTP support Flash?
what is the default ordinal identifier.what are the send keys in qTP.
How to create a run time propertyfor an object?
where did you automate in your project?(please tell me example senarios)
How to get Traceability matrix from TD?
What is difference between Quality centre and Test Director?
How does QTP identifes the object in the application?
With out using the task manager,how to close the application using vbscript and what is the statement?
How to get the particular property value?
How would you parameterize the text field "Country" and the same "country" when it appears as combo field on other page with text field city and same with City combo field?