/// <summary>
 /// This is generic method for click on Menu items
 /// </summary>
 /// <param name="webActions"></param>
 /// <param name="MainMenu"></param>
 /// <param name="SubMenu"></param>
 public static void ClickMenu(this WebActions webActions, By MainMenu, By SubMenu)
 {
     System.Threading.Thread.Sleep(2000);
     webActions.Click(MainMenu);
     System.Threading.Thread.Sleep(2000);
     webActions.Click(SubMenu);
 }
 /// <summary>
 /// This click element is an extension to web action, it tried to supress the tiem out exception in login cases
 /// </summary>
 /// <param name="webActions"></param>
 /// <param name="locater"></param>
 public static bool ClickLogin(this WebActions webActions, By locater)
 {
     try
     {
         webActions.Click(locater);
         System.Threading.Thread.Sleep(3000);
         return(true);
     }
     catch (TimeoutException ex)
     {
         return(false);
     }
     catch (Exception e)
     {
         return(false);
     }
 }