EnsureClickable() method in UITestControlExtensions causing problems

Developer
Nov 25, 2012 at 7:16 AM
Edited Nov 25, 2012 at 7:22 AM

Hi,

What an amazing framework build on top of Coded UI ! It has made the automation code so simple and maintainable. Kudos....!

But I have noticed that the method self.EnsureClickable() in Click extension method of UITestControlExtensions class is causing "control not visible exception" being thrown, on click events for some controls on my application. When I comment this line, everything works perfect.

 public static void Click(this UITestControl self, Point relativeCoordinate) {
self.WaitForControlExist();
//self.EnsureClickable();
Mouse.Click(self, relativeCoordinate);
}

 

Ours is MVC application using  HTML 5 controls. I am running on VS2012 with win8 as OS.