public void SetTextBoxText() { //Arrange string text = "John"; ActUIElement setTextBoxAction = new ActUIElement(); setTextBoxAction.ElementType = Amdocs.Ginger.Common.UIElement.eElementType.TextBox; setTextBoxAction.ElementLocateBy = Amdocs.Ginger.Common.UIElement.eLocateBy.ByID; setTextBoxAction.ElementLocateValue = "user"; setTextBoxAction.ElementAction = ActUIElement.eElementAction.SetText; setTextBoxAction.Value = text; ActUIElement getTextBoxAction = new ActUIElement(); getTextBoxAction.ElementType = Amdocs.Ginger.Common.UIElement.eElementType.TextBox; getTextBoxAction.ElementLocateBy = Amdocs.Ginger.Common.UIElement.eLocateBy.ByID; getTextBoxAction.ElementLocateValue = "user"; getTextBoxAction.ElementAction = ActUIElement.eElementAction.GetText; mBF.CurrentActivity.Acts.Add(setTextBoxAction); mBF.CurrentActivity.Acts.Add(getTextBoxAction); //ACT mBF.CurrentActivity.Acts.CurrentItem = setTextBoxAction; mGR.RunAction(setTextBoxAction, false); mBF.CurrentActivity.Acts.CurrentItem = getTextBoxAction; mGR.RunAction(getTextBoxAction, false); string textBoxValue = getTextBoxAction.GetReturnParam("Actual"); //Assert Assert.AreEqual(text, textBoxValue, "textBoxValue"); }