How to export(copy) the entire webtable from the webpage
into Excelsheet? using Vb scripting
Answer Posted / vikas sachdeva
For this first u need to add a webtable in the object
repository and use this line
dim xl
set xl=createobject("Excel.Application")
xl.workbooks.open "c:/book1.xls"
set nsheet=xl.sheets.item(1)
row=Browser("browser").page("page").webtable
("table").getroproperty("rows")
cols=Browser("browser").page("page").webtable
("table").getroproperty("cols")
for i=0 to row-1
for j=0 to col-1
val=Browser("browser").page("page").webtable
("table").getcelldata(i,j)
nsheet.cells(i,j)=val
next
next
| Is This Answer Correct ? | 18 Yes | 3 No |
Post New Answer View All Answers
Have you faced any problems with object repository?
How you can make an action as re-usable action?
Is it possible to change the property value at runtime? How it is possible?
How many types of recording facility are available in quicktest professional?
What are the benefits of quick test pro(qtp)?
Explain about datafile/verification of date file when file is not available in local system?
What are the ordinal identifiers in web page?
Could you please any one give code for the following ? Scenario : Suppose a excel file contains 10 records and earch have 5 fields. how can i input this excel file for datadrive wizard ? Please explain
What is the syntax to call one script from another?
How is the Bitmap checkpoint different from Image checkpoint?
How would you export a script from one pc to another in qtp?
how interviews will be on QTP?
Get the count of files of similar types from a folder.
How to import a test case present in ".xls" file to TD under a Test set?
Explain the types of object repository?