Hi,
I'm facing a strange situation where the WaitUntilClickable function seems to time out while attempting to right click on a Grid that is visible and enabled. What makes it perplexing is that it stopped working suddenly and this function still works from a test and playback recording.
I'm looking for some pointers on what could cause it, something I may be missing...
Any help is greatly appreciated!
private bool MouseClick(MouseButton button, AutomationElement element) { try { element.WaitUntilClickable(_waitTimeSpan); Mouse.MoveTo(element.BoundingRectangle.Left + LEFTPADDING, element.BoundingRectangle.Top + TOPPADDING); Mouse.Click(button); return true; } catch (Exception ex) { return false; } }
Thanks,
Reshma