Beispiel #1
0
        public void PressKey(char c)
        {
            _session.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(1);
            switch (c)
            {
            case '0': ZeroBtn.Click(); break;

            case '1': OneBtn.Click(); break;

            case '2': TwoBtn.Click(); break;

            case '3': ThreeBtn.Click(); break;

            case '4': FourBtn.Click(); break;

            case '5': FiveBtn.Click(); break;

            case '6': SixBtn.Click(); break;

            case '7': SevenBtn.Click(); break;

            case '8': EightBtn.Click(); break;

            case '9': NineBtn.Click(); break;

            case '.': DecimalBtn.Click(); break;

            case '+': AdditionBtn.Click(); break;

            case '-': SubtractBtn.Click(); break;

            case '/': DivideBtn.Click(); break;

            case '*': MultiplyBtn.Click(); break;

            case '%': PercentBtn.Click(); break;

            case '(': LeftParenthesisBtn.Click(); break;

            case ')': RightParenthesisBtn.Click(); break;

            default: throw new NotSupportedException($"Charactor: {c} not supported");
            }
        }
        public void PressKey(char c)
        {
            switch (c)
            {
            case '0': ZeroBtn.Click(); break;

            case '1': OneBtn.Click(); break;

            case '2': TwoBtn.Click(); break;

            case '3': ThreeBtn.Click(); break;

            case '4': FourBtn.Click(); break;

            case '5': FiveBtn.Click(); break;

            case '6': SixBtn.Click(); break;

            case '7': SevenBtn.Click(); break;

            case '8': EightBtn.Click(); break;

            case '9': NineBtn.Click(); break;

            case '+': AdditionBtn.Click(); break;

            case '-': SubtractBtn.Click(); break;

            case '/': DivideBtn.Click(); break;

            case '*': MultiplyBtn.Click(); break;

            case '%': PercentBtn.Click(); break;

            case '(': LeftParenthesisBtn.Click(); break;

            case ')': RightParenthesisBtn.Click(); break;

            default: throw new NotSupportedException($"Charactor: {c} not supported");
            }
        }