public void WhenIEnterBirthDate(string date) { date = date.Replace("-", ""); string year = date.Substring(0, 4); string month = date.Substring(4, 2); string day = date.Substring(6, 2); WelcomePage page = new WelcomePage(); page.EnterDay(day) .EnterMonth(month) .EnterYear(year); }