Suppose there is a link present somewhere in an excel sheet.
Find the link and click on it. How to write a script using
Excel application object in QTP?
Answer / anup muralidharan nair
'Assume the link present in excel that you want to click is
'www.google.co.in
set oxls = createobject("excel.application")
set obook = oxls.workbooks.open("D:\excel.xls")
set osheet = obook.worksheets("sheet1")
'Retrieve all the hyperlinks within the sheet
set ohyper = osheet.hyperlinks
for each hyp in ohyper
If hyp.name = "www.google.co.in" Then
hyp.follow
End If
next
'close the book and release the excel object
obook.close
set obook = nothing
set oxls = nothing
| Is This Answer Correct ? | 4 Yes | 0 No |
What the genaric function to connect Sql Server using Sql Server Authentication and Windows Authentication
Synchronozation types in QTP
I am getting the "test object property" Description properties "toolkit class" value By using "gettoproperty" in run time But my problem is how to get Ordinal Identyfier's type and value Type is index, value is 0 How can i keep this values in to required place How can i get these values in runtime I have to insert these "index" and "value" into another area Is there any script for this like "gettoproperties","Getroproperties" If anybody knows,please help me .
Have you ever written a compiled module? If yes tell me about some of the functions that you wrote.
How to make Shared object repository in qtp 9.1 and 9.2?
how u will describe testing activities?
what are the mandatory properties in qtp? what are the library functions in qtp?
How to test results for qtp ?
explain keyword driven framework?
what is the difference between DATA TABLE and DATA SET?
what is the exact testing process in qtp plz explin ?
What is an Regular expression doing in VBScript?Tell the pattern for the email verification.