コード例 #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
ファイル: Dropdown.cs プロジェクト: mariuszn95/Automation
        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);
        }