When assigning the following table to HTMLTABLE, it is unable to parse the rows. Therefore the row count is 0 and i am unable to validate the contents. According to the debugger, it is finding the table, just not parsing the rows.
any help would be appreciated.
Code:
Debugger Output:
any help would be appreciated.
Code:
//Find The main Grid
HtmlDiv GridDiv = ActiveBrowser.Find.ById<HtmlDiv>(
"globalSearchGrid"
);
//Find The Content
HtmlDiv Content = GridDiv.Find.ByAttributes<HtmlDiv>(
"class=k-grid-content"
);
HtmlTable ContenthtmlTable = Content.Find.ByTagIndex<HtmlTable>(
"table"
, 0);
Debugger Output:
ContenthtmlTable {HtmlTable:<table style=
"height: auto;"
id=
"globalSearchGrid-grid-table"
class
=
"k-focusable"
cellSpacing=
"0"
>}
HTML:
<
table
id
=
"globalSearchGrid-grid-table"
cellspacing
=
"0"
style
=
"height: auto;"
class
=
"k-focusable"
>
<
colgroup
>
<
col
/>
<
col
/>
<
col
/>
<
col
/>
<
col
/>
</
colgroup
>
<
tbody
>
<
tr
>
<
td
class
=
""
><
input
type
=
"checkbox"
/></
td
>
<
td
><
span
>Test Matter</
span
></
td
>
<
td
><
span
>5000000092</
span
></
td
>
<
td
><
span
>2007-03-22T00:00:00</
span
></
td
>
<
td
><
span
>Open</
span
></
td
>
</
tr
>
<
tr
>
<
td
><
input
type
=
"checkbox"
/></
td
>
<
td
class
=
""
><
span
>ITP Budget Matter 2</
span
></
td
>
<
td
><
span
>5000000023</
span
></
td
>
<
td
><
span
>2006-04-11T00:00:00</
span
></
td
>
<
td
><
span
>Open</
span
></
td
>
</
tr
>
<
tr
>
<
td
><
input
type
=
"checkbox"
/></
td
>
<
td
><
span
>test123123123</
span
></
td
>
<
td
><
span
>5000000098</
span
></
td
>
<
td
><
span
>2007-08-20T00:00:00</
span
></
td
>
<
td
><
span
>Open</
span
></
td
>
</
tr
>
</
tbody
>
</
table
>