public void Click(IAutomatedUIElement element, EventModifiers modifiers = EventModifiers.None) { if (!element.hasRect) { Debug.LogWarning("Cannot click on an element that has no rect"); return; } Click(EventUtility.ConvertGuiViewCoordsToEditorWindowCoords(element.rect.center), modifiers); }