@Test public void testDifferentBrowsers() { for (Browser browser : of(CHROME, FIREFOX, SAFARI)) { jQueryDatePickerPage = new JQueryDatePickerPage(browser, new Url<>(browser, url)); jQueryDatePickerPage.open(); jQueryDatePickerPage.pick(APRIL, 1, 2012); assertEquals("04/01/2012", jQueryDatePickerPage.getDate()); } }
@Test public void pickADate() { jQueryDatePickerPage.pick(APRIL, 1, 2012); assertEquals("04/01/2012", jQueryDatePickerPage.getDate()); }