예제 #1
0
        public void MouseOver()
        {
            LoggerElements.LogStart(MethodBase.GetCurrentMethod().Name, this.MainLocator);

            this.ElementHelpers.MouseOverJs(this.ElementHelpers.FindElement(this.MainLocator));

            LoggerElements.LogEnd(MethodBase.GetCurrentMethod().Name, this.MainLocator);
        }
예제 #2
0
        public void Click(int index = 0)
        {
            LoggerElements.LogStart(MethodBase.GetCurrentMethod().Name, this.MainLocator, index);

            this.ElementHelpers.Click(this.MainLocator, index);

            LoggerElements.LogEnd(MethodBase.GetCurrentMethod().Name, this.MainLocator, index);
        }
예제 #3
0
        public void WaitForIt()
        {
            LoggerElements.LogStart(MethodBase.GetCurrentMethod().Name, this.MainLocator);

            Wait.ForElement(this.MainLocator);

            LoggerElements.LogEnd(MethodBase.GetCurrentMethod().Name, this.MainLocator);
        }
예제 #4
0
        private void ClickByJsForVtYtdPtd(int index = 0)
        {
            LoggerElements.LogStart(MethodBase.GetCurrentMethod().Name, this.MainLocator, index);

            this.ElementHelpers.ClickByJs(By.CssSelector("bs-checkbox :nth-child(2)"), index);

            LoggerElements.LogEnd(MethodBase.GetCurrentMethod().Name, this.MainLocator, index);
        }
예제 #5
0
        private void ClickByJsForVt(int index = 0)
        {
            LoggerElements.LogStart(MethodBase.GetCurrentMethod().Name, this.MainLocator, index);

            this.ElementHelpers.ClickByJs(By.XPath("//h3[contains(text(), 'Value Types')]/../..//*[contains(@class,'value-picker__item ')]/label/input"), index, 0);

            LoggerElements.LogEnd(MethodBase.GetCurrentMethod().Name, this.MainLocator, index);
        }
예제 #6
0
        public void ClickByJs()
        {
            LoggerElements.LogStart(MethodBase.GetCurrentMethod().Name, this.MainLocator);

            Wait.StandardWait();

            this.ElementHelpers.ClickByJs(this.MainLocator);

            LoggerElements.LogEnd(MethodBase.GetCurrentMethod().Name, this.MainLocator);
        }
예제 #7
0
        public void SelectValue(string value)
        {
            LoggerElements.LogStart(MethodBase.GetCurrentMethod().Name, this.MainLocator, value);

            if (value != null)
            {
                this.ElementHelpers.Click(this.MainLocator);
            }

            LoggerElements.LogEnd(MethodBase.GetCurrentMethod().Name, this.MainLocator, value);
        }
예제 #8
0
        public void EnterValueByJs(string value)
        {
            LoggerElements.LogStart(MethodBase.GetCurrentMethod().Name, this.MainLocator, value);

            if (value != null)
            {
                this.ElementHelpers.SendKeysByJs(this.MainLocator, value);
            }

            LoggerElements.LogEnd(MethodBase.GetCurrentMethod().Name, this.MainLocator, value);
        }
예제 #9
0
        public void Uncheck()
        {
            LoggerElements.LogStart(MethodBase.GetCurrentMethod().Name, this.MainLocator);

            if (this.IsChecked())
            {
                this.Click();
            }

            LoggerElements.LogEnd(MethodBase.GetCurrentMethod().Name, this.MainLocator);
        }
예제 #10
0
        public void CheckByJsForVt(int index = 0)
        {
            LoggerElements.LogStart(MethodBase.GetCurrentMethod().Name, this.MainLocator, index);

            if (!this.IsCheckedByJsForVt(index))
            {
                this.ClickByJsForVt(index);
            }

            LoggerElements.LogEnd(MethodBase.GetCurrentMethod().Name, this.MainLocator, index);
        }
예제 #11
0
        public void UncheckByJsVtYtdPtd(int index = 0)
        {
            LoggerElements.LogStart(MethodBase.GetCurrentMethod().Name, this.MainLocator, index);

            Wait.StandardWait();

            if (this.IsCheckedByJsForVtYtdPtd(index))
            {
                this.ClickByJsForVtYtdPtd(index);
            }

            LoggerElements.LogEnd(MethodBase.GetCurrentMethod().Name, this.MainLocator, index);
        }
예제 #12
0
        public void SetValue(bool?value)
        {
            LoggerElements.LogStart(MethodBase.GetCurrentMethod().Name, this.MainLocator, value);

            if (value != null)
            {
                if (value == true)
                {
                    this.Check();
                }
                else
                {
                    this.Uncheck();
                }
            }

            LoggerElements.LogEnd(MethodBase.GetCurrentMethod().Name, this.MainLocator, value);
        }