Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /// <summary>
- /// Sets the number of adults for each room
- /// </summary>
- /// <param name="selector">The search type</param>
- /// <param name="adults">The number of adults</param>
- /// <param name="rooms">The number of rooms</param>
- public void SetNumberOfAdults(SearchType selector, List<int> adults, int rooms = 1)
- {
- for (int i = 0; i < rooms; i++)
- {
- report.Info(string.Format("Set adults dropdown number {0} to '{1}'", i + 1, adults[i]));
- app.SelectText(adults[i].ToString(), app.FindElement(By.XPath(string.Format("//div[contains(@class,'{0}')]//select[@name='stayDetails.roomRequests[{1}].adults']", selector.ToString(), i))));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement