示例#1
0
 public bool Stale(Options options)
 {
     try
     {
         NativeSeleniumElement.FindElement(By.XPath("."));
         return(!options.ConsiderInvisibleElements && !NativeSeleniumElement.Displayed);
     }
     catch (InvalidOperationException)
     {
         return(true);
     }
     catch (NoSuchWindowException)
     {
         return(true);
     }
     catch (StaleElementReferenceException)
     {
         return(true);
     }
 }
示例#2
0
 public string this[string attributeName]
 {
     get { return(NativeSeleniumElement.GetAttribute(attributeName)); }
 }