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?
Answer Posted / manish
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 |
Post New Answer View All Answers
Does QTP run in any environment?
How to automate a script in mainframes environment? I have the terminal emulator Add in. Describe in detail.
Hi All, I have QTP installed on my machine but the application under test (AUT) is on remote desktop.My scenarios is like that,it should contain following steps. 1)Automatically it should click on start and then on remote desktop connection. 2)it should enter the IP address and then connect to remote desktop. 3)and then it should be able to record the application in remote machine and then run it also. Can somebody tell me how to record the application which is in remote machine.
What is a quick test professional?
what is Property......End Property loop? how to write sript for it in QTP
How can I change object description or check point values in qtp?
Explain the types of object repositorys in qtp?
On what document base Descriptive programming is written if build is not yet ready ?
How is the Bitmap checkpoint different from Image checkpoint?
What is data driver in qtp?
How can we retrieve the Bug Ids which are open&Reopen in status through QTP scrit?Please find the script which i tried... Dim objBugFactory, objBug Dim BugId Set TDConnection = QCUtil.TDConnection Set objBug = TDConnection.BugFactory If QCUtil.IsConnected then Reporter.ReportEvent 0, "Connected", "Connected to server: " + QCUtil.TDConnection.ServerName + chr (13) +"Project: " + QCUtil.TDConnection.ProjectName + chr (13) + "Domain: " + QCUtil.TDConnection.DomainName Reporter.ReportEvent 0, "Current time on server is","==>" & TDConnection.ServerTime Else Reporter.ReportEvent 1, "Not connected", "Not connected to Quality Center" End If If mybug.Status="Open" Then BugId=mybug.DefectId MsgBox BugId End If 'OR**********************************--------------------- -----********************************** If Bug_Fields("BG_STATUS").Value ="Open" Or "Re Open"Then BugId=Bug_Fields("BG_BUG_ID").Value MsgBox BugId End If
I want to test my vb.net solution file using qtp. Does Qtp test only .exe file?
How to break the object spy ?
How to find operating system information using the qtp script?
What is the parameterization? Give one example?