Table with header column causing exception.


I got a table that has a column consists of header cells. When I try to get a cell value from this table using the method tbl.GetCellValue(row, col) an exception is thrown. Can you fix this?
Table layout:
th | th | th
th | td | td
th | td | td
Thank you
Closed Feb 14, 2013 at 7:25 AM by icnocop
Fixed in CUITe 1.0.6 Beta


icnocop wrote Aug 24, 2012 at 8:06 AM

Hi Floopy-Doo.

Which version of CUITe are you using?

I submitted changeset 19095 on Aug. 8th which includes a fix for an issue when working with html table rows with header cells.

I'm hoping this will fix your issue.

You will have to download, build, and reference the binaries from the latest source code from the "Source Code" tab.

Thank you.

FloopyDoo wrote Aug 24, 2012 at 8:48 AM

Hi icnocop

I used 18040. I'll try the new changeset.

Thank you

FloopyDoo wrote Aug 24, 2012 at 10:18 AM

Hi icnocop

I updated to the new changeset and checked the code. Unfortunately I found a problem.
You used in the Method GetCell the code "cont.Cells.OfType <HtmlCell>()" to filter out all non HtmlCell object.
So if I have a table like this "th | td | td | td", there will be a problem that the column numbers are not the same. to access the second "td" the index is not 2, it its 1.

You might need to fix that.

Thanks for your help.

icnocop wrote Aug 27, 2012 at 1:27 AM

Hi Floopy-Doo,

This is fixed in changeset #19632.

Thank you.

wrote Sep 15, 2012 at 1:50 AM

wrote Jan 21, 2013 at 7:53 AM

wrote Feb 14, 2013 at 7:25 AM

wrote Feb 22, 2013 at 12:10 AM

wrote May 16, 2013 at 11:35 AM