예제 #1
0
 public void VerifySortbyOptions()
 {
     if (SortBy.DoesExistsOnPage())
     {
         IList <IWebElement> totalSortOptions = SortBy.FindElements(By.CssSelector(SortoptionCssselector));
         TotalSortOptions = totalSortOptions;
     }
     if (TotalSortOptions.Any())
     {
         foreach (IWebElement sortOption in TotalSortOptions)
         {
             Reporter.Pass("VerifySortbyOptions -" + sortOption.Text + " available", sortOption.Text);
         }
     }
     else
     {
         Reporter.Fail("VerifySortbyOptions", "Sort options are not available.");
     }
 }