public void SelectsBookingByCaseName(string caseName) { _browsers[_c.CurrentUser].Driver.WaitUntilVisible(BookingsListPage.Row(caseName)); for (var i = 0; i < RETRIES; i++) { _rowId = GetRowId(caseName); if (_rowId == null || _rowId.Equals(string.Empty)) { continue; } break; } _browsers[_c.CurrentUser].Click(BookingsListPage.RowWithId(_rowId)); }
private string GetRowId(string text) { return(_browsers[_c.CurrentUser].Driver.WaitUntilVisible(BookingsListPage.Row(text)).GetAttribute("id")); }