Ejemplo n.º 1
0
        public int GetNumberOfSearchResults()
        {
            var rows = SearchResultsTable.FindElement(By.TagName("tbody"))
                       .FindElements(By.TagName("tr"));

            return(rows.Count);
        }
Ejemplo n.º 2
0
        public void ClickSearchResultAddButtonForRow(int index)
        {
            var tbody = SearchResultsTable.FindElement(By.TagName("tbody"));
            var rows  = tbody.FindElements(By.TagName("tr"));

            if (rows.Count > index)
            {
                rows[index].FindElement(By.CssSelector(".add-to-cart-button")).Click();
            }
        }
Ejemplo n.º 3
0
        public void ClickSearchResults(int index)
        {
            var tbody = SearchResultsTable.FindElement(By.TagName("tbody"));
            var rows  = tbody.FindElements(By.TagName("tr"));

            if (rows.Count > index)
            {
                rows[index].Click();
            }
        }
Ejemplo n.º 4
0
 void ReleaseDesignerOutlets()
 {
     if (CategoryTable != null)
     {
         CategoryTable.Dispose();
         CategoryTable = null;
     }
     if (CoursesTabBarItem != null)
     {
         CoursesTabBarItem.Dispose();
         CoursesTabBarItem = null;
     }
     if (ProfileTabBarItem != null)
     {
         ProfileTabBarItem.Dispose();
         ProfileTabBarItem = null;
     }
     if (SearchBar != null)
     {
         SearchBar.Dispose();
         SearchBar = null;
     }
     if (SearchResultsTable != null)
     {
         SearchResultsTable.Dispose();
         SearchResultsTable = null;
     }
     if (TabBar != null)
     {
         TabBar.Dispose();
         TabBar = null;
     }
     if (TvNoCoursesFound != null)
     {
         TvNoCoursesFound.Dispose();
         TvNoCoursesFound = null;
     }
     if (TvSearchFaulted != null)
     {
         TvSearchFaulted.Dispose();
         TvSearchFaulted = null;
     }
     if (TvSearching != null)
     {
         TvSearching.Dispose();
         TvSearching = null;
     }
 }