Jump to the post that solved this thread.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Unable to read numeric values from WebTable into Datatable
#1
Solved: 10 Years, 4 Months ago
Hi There,

I had written a script to read values from webtable to Datatable then export to Excel.
Script is working well while reading values from weblist and stores it into Data table, but when it comes to Numaric values it just placing blank values in Data table.
What could be issue with the WebEdit fields with numerical values?
Script is as follows: Website I have used is http://www.mortgagecalculator.org/

Code:
Set oWT= Description.Create()
    oWT("html tag").value = "TABLE"
    oWT("INDEX").value = 2
    
    datatable.AddSheet "Mysheet"
    Set oTable = Browser("Mortgage Calculator").Page("Mortgage Calculator").webtable(oWT)
    RC = oTable.RowCount
    CC =oTable.ColumnCount(1)
    
    For i = 1 to CC
        ColHeader = oTable.GetCellData(1,i)
        Datatable.GetSheet("Mysheet").AddParameter ColHeader, " "
    Next
    
    For j= 2 to 8
            datatable.GetSheet("Mysheet").SetCurrentRow(j)
            Ccnt = otable.ColumnCount(j)
                For k=1 to Ccnt
                    celldata = otable.GetCellData( j, k)
                    datatable.GetSheet("Mysheet").GetParameter(k).Value = celldata
                    print celldata
                Next
    Next
datatable.Exportsheet  "C:\Users\u292693\Desktop\Book1.xls ","Mysheet"
    
    Set oTable = Nothing
Reply
Jump to the post that solved this thread.


Messages In This Thread
Unable to read numeric values from WebTable into Datatable - by Akhila - 10-25-2013, 10:46 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
Toungue how to get values of childItem of a webtable caze 17 117,632 11-06-2017, 01:05 PM
Last Post: sivaji
  Link in a webtable in a webtable Soulwalker 1 2,700 07-19-2017, 01:44 PM
Last Post: Ankur
  Unable to click on WebButton in WebTable srach84 1 2,905 02-09-2015, 09:07 PM
Last Post: arpan
  Webtable actions are not getting recorded, but ObjectSpy is able to identify webtable sahilarora2000 2 3,641 06-13-2014, 04:27 PM
Last Post: vinod123
  QTP Unable to differentiate WebTable in Application - Solved EnthusiasticLearner 3 6,022 12-27-2013, 12:26 PM
Last Post: EnthusiasticLearner

Forum Jump:


Users browsing this thread: 1 Guest(s)