Пример #1
0
        public BasePage FilterSearchBy(string text)
        {
            Do.Click(DDL_Departments);
            new SelectElement(DDL_Departments).SelectByText(text);

            return(this);
        }
        public SCHomePage RenameArea(int index, string newName)
        {
            var areaCard = LST_Areas[index - 1];

            areaCard.FindElement(By.CssSelector("div button")).Click();
            Do.Click(BTN_EditArea);
            Do.ClearAndSendKeys(FLD_TextArea, newName);
            Driver.WaitElementToDisappear(backdrop);
            Driver.WaitIsClickable(BTN_TickButton);
            Do.Click(BTN_TickButton);

            return(this);
        }
        public SCHomePage RenameArea(string oldName, string newName)
        {
            var areaCard = LST_Areas.First(x => x.FindElement(By.CssSelector("md-card-title-text>span:first-of-type")).Text == oldName);

            areaCard.FindElement(By.CssSelector("div button")).Click();
            Do.Click(BTN_EditArea);
            Do.ClearAndSendKeys(FLD_TextArea, newName);
            Driver.WaitElementToDisappear(backdrop);
            Driver.WaitIsClickable(BTN_TickButton);
            Do.Click(BTN_TickButton);

            return(this);
        }
        public SCLocationPage OpenStockCount()
        {
            if (MinimizedMenu.Exist())
            {
                Do.Click(ICN_Hamburger);
            }

            Driver.WaitElementToExists(LNK_StockCount);
            LNK_StockCount.Click();
            SwitchToTab();

            return(new SCLocationPage(Driver));
        }
Пример #5
0
 public BookDetailsPage OpenDetailsForItem(int index)
 {
     Do.Click(m_LST_Results[index - 1].FindElement(By.CssSelector(".s-access-detail-page")));
     return(new BookDetailsPage());
 }
Пример #6
0
        public AddedToBasketPage AddToBasket()
        {
            Do.Click(m_BTN_AddToBasket);

            return(new AddedToBasketPage());
        }
Пример #7
0
 public void SubmitTextSearch()
 {
     Do.Click(BTN_SubmitText);
 }
Пример #8
0
        public CartPage EditCart()
        {
            Do.Click(m_BTN_EditBasket);

            return(new CartPage());
        }