public void ClickElementByCssSelector(string elementSelector) { Thread.Sleep(TimerController.SetDelayTimeBySecond("1")); _log.Info("Click element by CSS."); var element = WebElementsController.FindElementByCssSelector(elementSelector); WebMouseController.MouseOverToElementAndClick(element); }
public bool ConfirmElementTextIncludeExpectedValue(string cssSelector, string expectedValue, string tag) { Thread.Sleep(TimerController.SetDelayTimeBySecond("1")); _log.Info("Confirm element text include expected value."); var element = WebElementsController.GetElementObject(cssSelector, tag); var elementText = CommonUtil.GetElementText(element); return(AssertionController.IncludeText(elementText, expectedValue)); }