コード例 #1
0
 public void GoBackToInventoryPage()
 {
     try
     {
         GobackToInventoryLnk.Click();
     }
     catch (NoSuchElementException ex)
     {
         Console.WriteLine(ex.StackTrace);
     }
 }
コード例 #2
0
        public Boolean IsBackToButtonClicked()
        {
            Boolean isBackBtn = false;

            try
            {
                //Clear Filter from Inventory Home page if its already applied

                if (GobackToInventoryLnk.Displayed)
                {
                    Console.WriteLine("I see Go Back To Inventory Link");
                    GobackToInventoryLnk.Click();
                    isBackBtn = true;
                }
            }
            catch (NoSuchElementException ex)
            {
                Pages.InventoryPage().BtnGotIt.Click();
                //string alertMasg = Pages.InventoryPage().GetTradeAlertMsg();
                Console.WriteLine("Go Back To Inventory link is not present ." + ex.StackTrace);
            }
            return(isBackBtn);
        }