Ejemplo n.º 1
0
        public void enterTextByControlName(String textboxname, float textboxvalue)
        {
            var edit = win.GetMultiple(SearchCriteria.ByControlType(ControlType.Edit));


            foreach (TextBox t in edit)
            {
                if (t.NameMatches(textboxname))
                {
                    t.SetValue(textboxvalue);
                }
            }
        }
Ejemplo n.º 2
0
        public ResultPage(Window window)
        {
            this.window = window;

            var edits = window.GetMultiple(SearchCriteria.ByControlType(ControlType.Edit)).Cast<TextBox>().ToArray();
            resultField = edits.First(edit => edit.Text == "0");
            resultScreen = edits.First(edit => edit != resultField);
            resultButton = window.Get<Button>(SearchCriteria.ByText("="));
            okButtonCriteria = SearchCriteria.ByText("OK");
        }