@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()); } }
@After public void close() { jQueryDatePickerPage.close(); }
@Test public void pickADate() { jQueryDatePickerPage.pick(APRIL, 1, 2012); assertEquals("04/01/2012", jQueryDatePickerPage.getDate()); }
@Before public void setup() { jQueryDatePickerPage.open(); }