Why the Table's Rows is Null??

Aug 17, 2009 at 2:21 PM

I am new to this framework,I want to access a DataGridView by this Code

SearchCriteria searchCriteria = SearchCriteria.ByAutomationId(this.tabID);
tab = window.Get<Table>(searchCriteria);
tab.Rows[0].Select();


I can get the table, but the tab.Rows always is null,
so

tab.Rows[0].Select(); throw a Exception 

How solve this problem?

Thanks!
Coordinator
Aug 18, 2009 at 4:59 PM

have a look here Other questions

if it still doesn't help can you send the output for table.LogStructure()

Aug 19, 2009 at 11:34 AM

Thank you for your reply.

I find my  problem is same as the Discussion(http://white.codeplex.com/Thread/View.aspx?ThreadId=26049)

I find two machine to run my code,one machine can get rows but other machine can't get details of Table.

The windows version of the two machine is same and the version of UIAutomationClient is 3.0.0.0__31bf3856ad364e35.

 

Coordinator
Sep 4, 2009 at 2:51 AM

http://white.codeplex.com/Wiki/View.aspx?title=Other%20questions