/// <summary>
 /// Method to move the mouse focus onto element
 /// </summary>
 /// <param name="ElementUnderTest"></param>
 public static void FocusOnElement(WebElement ElementUnderTest)
 {
     try
     {
         ElementUnderTest.MoveTo();
     }
     catch (Exception ex)
     {
         throw new Exception("Error Message - " + ex.ToString());
     }
 }
 /// <summary>
 /// Method to select the element on page by single click
 /// </summary>
 /// <param name="ElementUnderTest"></param>
 public static void SelectElement_SingleClick(WebElement ElementUnderTest)
 {
     try
     {
         ElementUnderTest.MoveTo();
         ElementUnderTest.Focus();
         ElementUnderTest.Click();
     }
     catch (Exception ex)
     {
         throw new Exception("Error Message - " + ex.ToString());
     }
 }
Beispiel #3
0
        public Boolean CzyIstniejeToolTip(WebElement tdTag) //16.12 - zmieniono InputTag na Webelement - do testów
        {
            DebugLog("Ustaw cursor na polu");
            tdTag.MoveTo();
            tdTag.Click();
            Keyboard.Press(Keys.Tab); // żeby zadziałał validator

            DebugLog("Pobierz zawartość tooltipa");
            var tltp = tdTag.Element["data-errorqtip"]; // sprawdź czy istnieje tooltip!

            if (tltp == null)
            {
                DebugLog("Nie znaleziono tooltipa");
                return(false);
            }
            else
            {
                return(true);
            }
        }