RUDOLF_BOTHMA
7 years agoCommunity Hero
WaitCell and object does not exist
Afternoon folks,
I'm running into an intermittent issue I hope have you have ideas about. There are loads of questions that are ALMOST the same, but none of them seem to be quite what I'm experiencing. Short summary: if I use WaitCell, very occasionally the WaitCell call itself causes "The object "Cell(0,0) does not exist" error. The test will continue running, but because there's an error, the test is marked as failed.
the code:
grid.RefreshMappingInfo(); // I can sort the grid, so need to refresh the mapping just in case, else the mappings will be broken var waitCell = grid.WaitCell(0,0,10000); //The object doesn't exist and is output to the error about 0.5 seconds after the call
grid.FindChildEx(… //this works again
I'm using it as a way to confirm that RefreshMappingInfo()has completed before I try and use Find methods again. At worst it should return a stub, right ?