protected bool IsPositionVisible(RectangleF position) { if (position.IsEmpty) return false; var phoneOrientation = Emu.DisplayInputController.GuessOrientation(); return position.IsVisible(phoneOrientation); }
protected bool IsPositionVisible(RectangleF position) { bool result = true; var phoneOrientation = Emu.DisplayInputController.GuessOrientation(); try { StepFlowOutputHelpers.Write("IsVisible checking position {0}, {1}, {2}, {3} in orientation {4}", position.Left, position.Top, position.Width, position.Height, phoneOrientation); position.IsVisible(phoneOrientation); } catch (Exception ex) { StepFlowOutputHelpers.Write("IsVisible exception {0}, {1}", ex.GetType().Name, ex.Message); result = false; } return result; }