예제 #1
0
 public IWebElement FindElement(By by)
 {
     try
     {
         return(new WebElementAdapter(syncWebElement.FindElement(WebDriverConverters.By(by)), driver));
     }
     catch (Zu.WebBrowser.BasicTypes.WebBrowserException webDriverException)
     {
         throw WebDriverConverters.ToSeleniumException(webDriverException);
     }
     catch { throw; }
 }
예제 #2
0
 public ReadOnlyCollection <IWebElement> FindElements(By by)
 {
     try
     {
         return(new ReadOnlyCollection <IWebElement>(syncWebElement.FindElements(WebDriverConverters.By(by)).Select(v => (IWebElement) new WebElementAdapter(v, driver)).ToList()));
     }
     catch (Zu.WebBrowser.BasicTypes.WebBrowserException webDriverException)
     {
         throw WebDriverConverters.ToSeleniumException(webDriverException);
     }
     catch { throw; }
 }