Example #1
0
        /// <summary>
        /// Changes the next step text.
        /// </summary>
        /// <param name="newValue">The new value.</param>
        /// <param name="oldValue">The old value.</param>
        public void ChangeNextStepTextInAdvancedSettings(string newValue, string oldValue = "Next step")
        {
            HtmlInputText nextStep = EM.Forms.FormsBackend.NextStepInputInAdvancedSettings;

            nextStep.AssertIsVisible("Next step input");
            Assert.AreEqual(oldValue, nextStep.Text);
            nextStep.Click();

            Manager.Current.Desktop.KeyBoard.KeyDown(System.Windows.Forms.Keys.Control);
            Manager.Current.Desktop.KeyBoard.KeyPress(System.Windows.Forms.Keys.A);
            Manager.Current.Desktop.KeyBoard.KeyUp(System.Windows.Forms.Keys.Control);
            Manager.Current.Desktop.KeyBoard.KeyPress(System.Windows.Forms.Keys.Delete);
            Manager.Current.Desktop.KeyBoard.TypeText(newValue);

            Assert.AreEqual(newValue, nextStep.Text);
        }
Example #2
0
        /// <summary>
        /// Changes the previous step text.
        /// </summary>
        /// <param name="newValue">The new value.</param>
        /// <param name="oldValue">The old value.</param>
        public void ChangePreviousStepText(string newValue, string oldValue = "Previous step")
        {
            HtmlInputText previousStep = EM.Forms.FormsBackend.PreviousStepInput;

            previousStep.AssertIsVisible("Previous step input");
            Assert.AreEqual(oldValue, previousStep.Text);
            previousStep.Click();

            Manager.Current.Desktop.KeyBoard.KeyDown(System.Windows.Forms.Keys.Control);
            Manager.Current.Desktop.KeyBoard.KeyPress(System.Windows.Forms.Keys.A);
            Manager.Current.Desktop.KeyBoard.KeyUp(System.Windows.Forms.Keys.Control);
            Manager.Current.Desktop.KeyBoard.KeyPress(System.Windows.Forms.Keys.Delete);
            Manager.Current.Desktop.KeyBoard.TypeText(newValue);

            Assert.AreEqual(newValue, previousStep.Text);
        }