Example #1
0
        public void GoToElement()
        {
            SeleniumActions.MoveToElementAction(WebElement);
            string message = $"Moved to (Button) [ {ControlName} ].";

            LoggerManagerClass.Instance.Information(message);
            TestCaseProvider.Instance.AddStepInCurrentTestCase(LogStepStatus.Passed, message);
        }
Example #2
0
        public void SetDateValue(string text)
        {
            WebElement.Clear();        // clear the text field
            SeleniumActions.BrowserSleep(10);
            WebElement.SendKeys(text); // set the new value in the text field

            string message = $"The (Text Field) [ {ControlName} ] set the value: [ {text} ].";

            LoggerManagerClass.Instance.Information(message);
            TestCaseProvider.Instance.AddStepInCurrentTestCase(LogStepStatus.Passed, message);
        }