Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to get the data from website to excel
#5
Solved: 11 Years, 3 Months, 4 Weeks ago
Hi Saisu,

You may try the following for extracting the data as required by you.For now i can only think of the following way.Assuming that the number size is fixed and code size is fixed,etc.
Code:
strText=Browser("Browser").Page("Page").Object.body.innerText
msgbox strText
'number position
posNum=instr(strText,"Number")+7
msgbox posNum
strNumber=mid(strText,posNum,10)
msgbox strNumber
DataTable.Value("Number")=strNumber

'Directory entry type position
posDET=instr(strText,"Directory Entry Type")+21
strDET=mid(strText,posDET,3)
DataTable.Value("DET")=strDET
msgbox strDET
Hope this helps you.

Regards,
Ravi
Reply


Messages In This Thread
RE: How to get the data from website to excel - by ravi.gajul - 11-25-2011, 09:37 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Want to read the data from excel and set read value in the JavaTable rajeevk7 0 2,317 07-10-2017, 04:20 PM
Last Post: rajeevk7
  dtLocalSheet empty even though excel file contains data cantorre 2 2,434 05-10-2017, 12:47 PM
Last Post: vidhi
  Reading data from excel sheet serenediva 1 9,621 03-03-2017, 10:07 AM
Last Post: vinod123
  How to check whether data exists in excel.. venkatesh9032 1 3,084 03-06-2014, 04:37 PM
Last Post: supputuri
  Importing data from Excel into Data table of QTP Chitti 1 4,907 11-01-2013, 05:54 PM
Last Post: Parke

Forum Jump:


Users browsing this thread: 1 Guest(s)