public void FeedbackTypePartialFilled(string feedbackType, string name, string routeNumber, string skytrainLine, string skytrainlineDirection, string station, string day, string time, string phoneNumber) { FeedbackPage feedbackPage = new FeedbackPage(driver); feedbackPage.GoToFeedbackSiteURL(); feedbackPage.SelectTypeofFeedback(feedbackType); switch (feedbackType) { case "Bus": feedbackPage.EnterRouteNumber(routeNumber); break; case "SkyTrain": feedbackPage.EnterSkytrainLine(skytrainLine); feedbackPage.ClickSkytrainLineDirection(skytrainlineDirection); feedbackPage.SelectSkyTrainStation(skytrainlineDirection, station); break; default: return; } feedbackPage.EnterFirstName(name, feedbackType); feedbackPage.EnterIncidentDate(day, feedbackType); feedbackPage.EnterIncidentTime(time, feedbackType); feedbackPage.EnterPhoneNumber(phoneNumber, feedbackType); feedbackPage.EnterResponseChoice("no", feedbackType); //Thread.Sleep(2000); feedbackPage.EnterResponseChoice("yes", feedbackType); feedbackPage.ClickSubmitButton(feedbackType); }