How to export(copy) the entire webtable from the webpage
into Excelsheet? using Vb scripting

Answer Posted / raj

Please try this code. It will save the whole WebTable
content in the form of excel sheet.

Environment("Peportpath")="C:\Result.xls"
a=Browser("Google").Page("Google").WebTable
("index:=0").GetROProperty("outerhtml")
Set FSO = CreateObject("Scripting.FileSystemObject")
Set WriteFile = FSO.CreateTextFile( Environment
("Peportpath"), True)
writeFile.writeLine(a)
writeFile.close

Is This Answer Correct ?    9 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can any body please tell me the steps of keyword driven frame work in qtp. My mail is saswat445@gmail.com please send some materials on keyword driven testing in qtp. thanks a lot...

1796


what are the issues we will get when there is migration from QTP 8.2 to QTP 10.0? Is there any problem in executing scripts of 8.2 on 10.0?

1451


How do you test DLL files using automation Tool QTP?

2739


www.icici.com ,after this.. home page wll came, in this page what r the items we r going to test for manual and what are items we r going to test for QTP... explian clearly with example

1733


How can you identify the browser and its information using the qtp script?

587






What r the different filters in defect in quality center

3287


How to use setroproperty?

579


Difference between action & Reusable action?

689


How to test background color and dynamic images during run time can you put the check point for moving objects?

1451


What is recovery scenario manager? When you go for recovery scenario manager?

595


Can any one tell me.......How the test engg's start testing in the compy environment.....real time tester PLSSSS help me i need in depth information regarding this...

1495


PLEASE TELL ME WHEN DO YOU USE THE OBJECT SPY AT RUN TIME

5965


desribe a situation where u faced a stressful situation and how did u cope with it

1413


How to attach a file to TD?

658


What is data driver in qtp?

578