Exemplo n.º 1
0
 public static void Select()
 {
     PageHeader.ClickUserMenu();
     if (UserMenu.IsUserMenuDropdownOpen())
     {
         ReadOnlyCollection <IWebElement> userMenuOptions = PageHeader.GetUserMenuList();
         userMenuOptions[1].Click();
     }
     else
     {
         throw new Exception("User menu dropdown isn't open");
     }
 }
Exemplo n.º 2
0
 public static void Select()
 {
     PageHeader.ClickUserMenu();
     if (UserMenu.IsUserMenuDropdownOpen())
     {
         ReadOnlyCollection <IWebElement> userMenuOptions = PageHeader.GetUserMenuList();
         IWebElement searchAndBookLink = userMenuOptions[0].FindElement(By.LinkText("Search and Book site"));
         searchAndBookLink.Click();
         PageHeader.ClosePreviousAndSwitchTab();
     }
     else
     {
         throw new Exception("User menu dropdown isn't open");
     }
 }
Exemplo n.º 3
0
 public static void Select()
 {
     PageHeader.ClickUserMenu();
     if (UserMenu.IsUserMenuDropdownOpen())
     {
         ReadOnlyCollection <IWebElement> userMenuOptions = PageHeader.GetUserMenuList();
         IWebElement ManageBookingLink = userMenuOptions[0].FindElement(By.LinkText("Manage Bookings"));
         ManageBookingLink.Click();
         PageHeader.SwitchTab();
     }
     else
     {
         throw new Exception("User menu dropdown isn't open");
     }
 }