public static void refresh(WebDriver webDriver) { WebDriver.Navigation navigation = webDriver.navigate(); navigation.refresh(); if (isAlertPresent(webDriver)) { getConfirmation(webDriver); } }
@Override public void goBack() { WebDriver.Navigation navigation = navigate(); navigation.back(); }
public static void goBack(WebDriver webDriver) { WebDriver.Navigation navigation = webDriver.navigate(); navigation.back(); }
@Override public void refresh() { WebDriver.Navigation navigation = navigate(); navigation.refresh(); }