public Point GetClickablePoint()
{
try
{
return this.element.GetClickablePoint();
}
catch (NoClickablePointException)
{
// TODO this is temporary solution for WebView elements, that do not return clickable point even if visible
// FIXME middle point of BoundingRectangle might be under anither element or off screen, need some checks
var rect = this.AutomationElement.Current.BoundingRectangle;
return new Point(rect.Left + (rect.Width / 2), rect.Top + (rect.Height / 2));
}
}