示例#1
0
        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);
            }
        }
示例#2
0
 public void ClickOperatorsButton(ButtonsEnum.OperatorsButton operators)
 {
     _mainWindow.ClickOperatorsButton(operators);
 }