Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Strange behave with web table
#1
Not Solved
Hi,

I have a strange behave when getting the row number of a table. I can not find any reason and need your help. With the same code:
i = Browser("Cyber").Page("ArchivedShipments").WebTable("tblShipping").RowCount
When i run from top to button of all script, the retrieve value is (i = 1), but when debug only this step, the retrieve one is (i =7) (true value). I don't know why? Can any one help me on that?

Thanks,
linhke
Reply
#2
Not Solved
Hi
row count may be changing dynamically when you are running the script. Run the script, when the run is at this step, stop the test and check the row count. Check if any other table with same property exists in the application. Is there any criteria prior to this web table which can change the table row/col?
Reply
#3
Not Solved
Almost sounds like the value for "i" is being changed after this line of code. If you are only getting 7 when you run that one line of code, make sure you are not assigning "i" a new value later in the script.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Can QTP handle slick grid table in a web page qtplearner88 2 4,508 10-01-2019, 10:44 AM
Last Post: shilpi952
  unable to rowcount in web table manoj84monu 1 2,913 06-13-2016, 04:46 PM
Last Post: Anu1234
  Fetching values from a web table qapandit 7 9,280 05-30-2014, 02:32 PM
Last Post: nistalaramesh
  How to get center data value in a odd number of rows and columns web table ... sai rajesh 0 2,796 11-13-2013, 10:24 PM
Last Post: sai rajesh
  QTP vbscript ArrayList strange behavior frankhovin 2 3,147 11-11-2013, 07:12 PM
Last Post: Parke

Forum Jump:


Users browsing this thread: 1 Guest(s)