Ejemplo n.º 1
0
 /// <summary>
 /// Get the element with the given id
 /// Wait RequestTimeout seconds for the element to appear.
 /// </summary>
 /// <param name="id">HTML id attribute of the elements</param>
 /// <param name="index">Index of the element collection with that name, defaults to 0</param>
 /// <param name="wait">Explicit WebDriverWait in seconds  for the element to appear</param>
 /// <returns></returns>
 public IWebElement GetHTMLElementById(string id, int index = 0, int wait = 0)
 {
     return(SeleniumExtensionBase.GetHTMLElementById(this, id, index,
                                                     wait: (wait == 0) ? SeleniumExtensionBase.RequestTimeout : wait));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Get the element adapter with the given clientID
 /// </summary>
 /// <param name="clientID">ClientID resp. HTML id attribute of the element</param>
 /// <returns></returns>
 public static IWebElement GetHTMLElement(this ISelenium inst, string clientID)
 {
     return(SeleniumExtensionBase.GetHTMLElementById(inst, clientID));
 }