Пример #1
0
 /// <summary>
 /// This function perform Click operation on the specified element after waiting for other element to be invisiable.
 /// </summary>
 /// <param name="element">IWebElement</param>
 public void ClickWait(IWebElement element, String locatorName, String locator)
 {
     //Highlight(element);
     WaitsHandler.WaitForElememntTobeInvisiable(BaseDriver, locatorName, locator, "", "");
     try
     {
         element.Click();
         LogHandler.Info("ClickWait::The element has been clicked");
     }
     catch (Exception e)
     {
         LogHandler.Error("ClickWait::Exception - " + e.Message);
         throw new NoSuchElementException("Click::Exception - " + e.Message);
     }
     WaitsHandler.WaitForAjaxToComplete(BaseDriver);
 }