So I'm doing some C# automation/UI testing with White and am having trouble with something. I have a DataGridView in the app and I set the background cell colors differently depending on application state. I want to check these colors during tests using White, but am having trouble doing so.
Here's what I'm trying to make work. I can get the grid view, but only as a table. Then, I have problems later on because I end up with plain TableCells instead of DataGridViewCells.
var Table = MainWindow.Window.Get<Table>("DataGridViewName");
var Row = Table.Rows[0];
var Cell = Row.Cells[0];
//invalid
//var Color = Cell.Style.BackColor;
Has anybody run into this before or have any suggestions?