public void ClickOperatorsButton(ButtonsEnum.OperatorsButton operators) { switch (operators) { case ButtonsEnum.OperatorsButton.Plus: new Button(SearchCriteria.ByAutomationId("93"), $"{ButtonsEnum.OperatorsButton.Plus} Button").Click(); break; case ButtonsEnum.OperatorsButton.Result: new Button(SearchCriteria.ByAutomationId("121"), $"{ButtonsEnum.OperatorsButton.Result} Button").Click(); break; default: throw new ArgumentOutOfRangeException(nameof(operators), operators, null); } }
public void ClickOperatorsButton(ButtonsEnum.OperatorsButton operators) { _mainWindow.ClickOperatorsButton(operators); }