Ejemplo n.º 1
0
        //public void ChangeRosterStatus ()
        //{
        //    var element = WebElementKeeper.WaitingFor_ElementIsVisible(this.Driver, By.XPath(cst_Toggle));
        //    if (element == null)
        //    {
        //        throw new Exception(string.Format("Element with XPath '{0}' does not exit", cst_Toggle));
        //    }

        //    this.toggle.Click();
        //}


        public void Next()
        {
            this.btnNext = WebElementKeeper.WaitingFor_GetElementWhenIsVisible(this.Driver, By.XPath(cst_Next));
            if (this.btnNext == null)
            {
                throw new Exception(string.Format("Next button with xpath '{0}' is not available", cst_Next));
            }
            this.btnNext.Click();
        }
Ejemplo n.º 2
0
 public void Move()
 {
     this._btnMove = WebElementKeeper.WaitingFor_GetElementWhenIsVisible(this.Driver, By.XPath(cst_Move));
     if (this._btnMove == null)
     {
         throw new Exception(string.Format("Move button with xpath '{0}' is not available", cst_Move));
     }
     this._btnMove.Click();
 }