Exemplo n.º 1
0
 public void WaitForPartialUrl(string url)
 {
     try
     {
         NavigationService.WaitForPartialUrl(url);
     }
     catch (Exception ex)
     {
         UiExceptionAnalyser.Analyse(ex, NavigationService);
         throw;
     }
 }
        public bool IsElementPresent(By by)
        {
            var result = default(bool);

            try
            {
                result = ElementFinder.IsElementPresent(by);
            }
            catch (Exception ex)
            {
                UiExceptionAnalyser.Analyse(ex, ElementFinder);
                throw;
            }

            return(result);
        }
        public IEnumerable <TElement> FindAll <TElement>(By by) where TElement : class, IElement
        {
            var result = default(IEnumerable <TElement>);

            try
            {
                result = ElementFinder.FindAll <TElement>(by);
            }
            catch (Exception ex)
            {
                UiExceptionAnalyser.Analyse(ex, ElementFinder);
                throw;
            }

            return(result);
        }