Quantcast
Channel: Windows Desktop Development for Accessibility and Automation forum
Viewing all articles
Browse latest Browse all 585

Coded UI Tests WaitUntilClickable on AutomationElement timing out

$
0
0

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


Viewing all articles
Browse latest Browse all 585

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>