private void ContinueProcess(bool isCapture) { if (this.rooms.Count == 1) { if (!this.isSingleRoom) { HotelResultsPage.ClickRoomNumber(hotelNumber, this.rooms[0].RoomNumber); } if (isCapture) { HotelResultsPage.ClickAvailableRoomAndCapture(hotelNumber, this.rooms[0].AvailableRoom); } else { HotelResultsPage.ClickAvailableRoom(hotelNumber, this.rooms[0].AvailableRoom); } return; } foreach (Room room in this.rooms) { HotelResultsPage.ClickRoomNumber(hotelNumber, room.RoomNumber); HotelResultsPage.ClickAvailableRoom(hotelNumber, room.AvailableRoom); } if (isCapture) { HotelResultsPage.ClickContinueAndCapture(); } else { HotelResultsPage.ClickContinue(); } }