public FastColoredTextBox MakeTextBox() { FastColoredTextBox newTextBox = (FastColoredTextBox)TextBoxFactory.GetFactory().GetControl(LoadAutocompleteItems()); view.AddTextBoxToView(newTextBox); return(newTextBox); }
public void TextBox() { _elements.TextBox.Click(); var user = TextBoxFactory.Create(); _elements.FillTextBox(_elements.UserName, _elements.UserEmail, _elements.CurrentAddress, user); _elements.ScrollTo(_elements.TextBoxSubmit).Click(); StringAssert.Contains("Kuku Buku", _elements.OutPutText.Text); }
public void FillOneOfPannels(string pannel) { _elements.TextBox.Click(); var user = TextBoxFactory.Create(); _elements.FillOne(_elements.FillPannel(pannel), user, pannel); _elements.ScrollTo(_elements.TextBoxSubmit).Click(); StringAssert.Contains("*****@*****.**", _elements.OutPutText.Text); }
internal static IControl GetUIElement(int uiElementType, int objectType) { IControl objUIElement; switch (uiElementType) { case 1: objUIElement = ButtonFactory.GetButton(objectType); break; case 2: objUIElement = TextBoxFactory.GetTextBox(objectType); break; default: objUIElement = null; break; } return(objUIElement); }