private void GetObserversCount() { var elements = _browser.Driver.FindElements(JudgeHearingListPage.ObserversCount(_hearingId)); _hearingRow.ObserversCount = elements.Count > 0 ? _browser.Driver.WaitUntilVisible(JudgeHearingListPage.ObserversCount(_hearingId)).Text.Trim() : "0"; }
private void GetObserversCount() { var elements = _browser.Driver.FindElements(JudgeHearingListPage.ObserversCount(_hearingId)); _hearingRow.ObserversCount = elements.Count > 0 ? _browser.TextOf(JudgeHearingListPage.ObserversCount(_hearingId)) : "0"; }