10-25-2013, 10:46 AM
|
Unable to read numeric values from WebTable into Datatable
|
|
11-14-2013, 07:02 AM
Akhila:
You are grabbing the $ or the % signs. Similarly, you are grabbing all the values in the drop down lists and not the values that have been selected. I believe GetCellData only grabs the (static) text in a webtable. To grab the dynamic data, we need to use the childItem method. If my understanding is wrong, please let me know. Try running the following code to get the values. Code: Set oWT= Description.Create()
oWT("html tag").value = "TABLE"
oWT("INDEX").value = 2
Set oTable = Browser("Mortgage Calculator").Page("Mortgage Calculator").WebTable(oWT)
for j= 2 to 10
If j = 6 Then
print "found "&j&",1 value = " & oTable.ChildItem(j,1,"Link",0).GetROProperty("innertext")
Else
If oTable.ChildItemCount(j,2,"WebEdit") = 1 Then
print "found "&j&",2 value = " & oTable.ChildItem(j,2,"WebEdit",0).GetROProperty("value")
ElseIf oTable.ChildItemCount(j,2,"WebList") = 1 Then
print "found "&j&",2 value = " & oTable.ChildItem(j,2,"WebList",0).GetROProperty("value")
ElseIf oTable.ChildItemCount(j,2,"WebList") = 2 Then
print "found "&j&",2 value = " & oTable.ChildItem(j,2,"WebList",0).GetROProperty("value")
print "found "&j&",2 value = " & oTable.ChildItem(j,2,"WebList",1).GetROProperty("value")
End If
End If
NextParke
11-26-2013, 03:43 PM
Thanks Parke for your valuable information. Its really helpful for me.
I was breaking my head on how to capture current value in the field than capturing all existing values from the list. and I also have no idea that Getcelldata captures only static values not the dynamic one. I try out based on your suggested script ![]() Thanks again !! |
|
« Next Oldest | Next Newest »
|
| Possibly Related Threads… | |||||
| Thread | Author | Replies | Views | Last Post | |
|
|
how to get values of childItem of a webtable | caze | 17 | 122,840 |
11-06-2017, 01:05 PM Last Post: sivaji |
| Link in a webtable in a webtable | Soulwalker | 1 | 3,375 |
07-19-2017, 01:44 PM Last Post: Ankur |
|
| Unable to click on WebButton in WebTable | srach84 | 1 | 3,524 |
02-09-2015, 09:07 PM Last Post: arpan |
|
| Webtable actions are not getting recorded, but ObjectSpy is able to identify webtable | sahilarora2000 | 2 | 4,579 |
06-13-2014, 04:27 PM Last Post: vinod123 |
|
| QTP Unable to differentiate WebTable in Application - Solved | EnthusiasticLearner | 3 | 7,107 |
12-27-2013, 12:26 PM Last Post: EnthusiasticLearner |
|
Users browsing this thread: 1 Guest(s)


