Пример #1
0
        public void GetMobileArticleList()
        {
            log.Info("tests start for GetMainArticleList");
            Mobile = _delfiService.GetMainPageCompareModel(DelfiConstants.DELFI_HOME_PAGE_MOB, DelfiConstants.XPATH_DIV_MOB,
                                                           DelfiConstants.XPATH_ARTICLE_MOB, DelfiConstants.XPATH_ARTICLES_COMMENT_COUNT_MOB, out var exc);
            var msg = Mobile != null && Mobile.Any() && String.IsNullOrEmpty(exc) ?
                      (!Mobile.Where(x => String.IsNullOrEmpty(x.Title)).Any() ? $"Test sucssesfully finidhed"
                    : "Test finished, but an error ocured in some articles Title")
                : $"Test not finished: {exc}";

            log.Info($"****Get Mobile Article List: {msg}");
        }