예제 #1
0
        public void ClickShowMore()
        {
            IWebElement element = SeleniumHelper.FindElement(SimsBy.Id("ShowAdvanced"));

            if (!element.GetValue().Trim().Equals("True"))
            {
                _advancedButton.ClickByJS();
            }
        }
        public void SelectAttendanceMode()
        {
            IWebElement okButton = SeleniumHelper.FindElement(SimsBy.CssSelector("[class='history-editor is-active']"));

            var dropdown = okButton.FindElement(SimsBy.CssSelector("[class='form-control select-imitator']"));

            dropdown.Click();
            IWebElement lstCodes = SeleniumHelper.FindElement(SimsBy.Id("s2id_autogen1_search"));

            lstCodes.SetText("AM only");
            lstCodes.SendKeys(Keys.Enter);
        }
예제 #3
0
 public static bool IsPageExist()
 {
     return(SeleniumHelper.DoesWebElementExist(SimsBy.Id("screen")));
 }