/** * Returns the "length" property. * @return the "length" property */ public int jsxGet_length() { final WebWindow w = getWindow().getWebWindow(); return w.getHistory().getLength(); }
@Override public void back() { try { getCurrentWindow().getHistory().back(); } catch (IOException e) { throw new WebDriverException(e); } }
@Override public void forward() { try { getCurrentWindow().getHistory().forward(); } catch (IOException e) { throw new WebDriverException(e); } }
/** * Returns the "length" property. * @return the "length" property */ public int jsxGet_length() { final WebWindow w = getWindow().getWebWindow(); return w.getHistory().getLength(); }
/** * Returns the "length" property. * @return the "length" property */ public int jsxGet_length() { final WebWindow w = getWindow().getWebWindow(); return w.getHistory().getLength(); }
/** * Reloads the window using the specified URL via a postponed action. * @param url the new URL to use to reload the window * @throws IOException if loading the specified location fails * @see <a href="http://msdn.microsoft.com/en-us/library/ms536712.aspx">MSDN Documentation</a> */ @JsxFunction public void replace(final String url) throws IOException { window_.getWebWindow().getHistory().removeCurrent(); setHref(url); }
/** * JavaScript function "forward". */ public void jsxFunction_forward() { final WebWindow w = getWindow().getWebWindow(); try { w.getHistory().forward(); } catch (final IOException e) { Context.throwAsScriptRuntimeEx(e); } }
/** * JavaScript function "back". */ public void jsxFunction_back() { final WebWindow w = getWindow().getWebWindow(); try { w.getHistory().back(); } catch (final IOException e) { Context.throwAsScriptRuntimeEx(e); } }
/** * Returns the {@code length} property. * @return the {@code length} property */ @JsxGetter public int getLength() { final WebWindow w = getWindow().getWebWindow(); return w.getHistory().getLength(); }
/** * Returns the {@code state} property. * @return the {@code state} property */ @JsxGetter public Object getState() { final WebWindow w = getWindow().getWebWindow(); return w.getHistory().getCurrentState(); }
/** * JavaScript function "forward". */ public void jsxFunction_forward() { final WebWindow w = getWindow().getWebWindow(); try { w.getHistory().forward(); } catch (final IOException e) { Context.throwAsScriptRuntimeEx(e); } }
/** * JavaScript function "back". */ public void jsxFunction_back() { final WebWindow w = getWindow().getWebWindow(); try { w.getHistory().back(); } catch (final IOException e) { Context.throwAsScriptRuntimeEx(e); } }
/** * JavaScript function "forward". */ public void jsxFunction_forward() { final WebWindow w = getWindow().getWebWindow(); try { w.getHistory().forward(); } catch (final IOException e) { Context.throwAsScriptRuntimeEx(e); } }
/** * Reloads the window using the specified URL via a postponed action. * @param url the new URL to use to reload the window * @throws IOException if loading the specified location fails * @see <a href="http://msdn.microsoft.com/en-us/library/ms536712.aspx">MSDN Documentation</a> */ @JsxFunction public void replace(final String url) throws IOException { window_.getWebWindow().getHistory().removeCurrent(); setHref(url); }
/** * JavaScript function "back". */ public void jsxFunction_back() { final WebWindow w = getWindow().getWebWindow(); try { w.getHistory().back(); } catch (final IOException e) { Context.throwAsScriptRuntimeEx(e); } }
/** * Returns the {@code state} property. * @return the {@code state} property */ @JsxGetter public Object getState() { final WebWindow w = getWindow().getWebWindow(); return w.getHistory().getCurrentState(); }
/** * JavaScript function "forward". */ @JsxFunction public void forward() { try { getWindow().getWebWindow().getHistory().forward(); } catch (final IOException e) { Context.throwAsScriptRuntimeEx(e); } }
/** * JavaScript function "back". */ @JsxFunction public void back() { try { getWindow().getWebWindow().getHistory().back(); } catch (final IOException e) { Context.throwAsScriptRuntimeEx(e); } }
/** * JavaScript function "go". * @param relativeIndex the relative index */ @JsxFunction public void go(final int relativeIndex) { try { getWindow().getWebWindow().getHistory().go(relativeIndex); } catch (final IOException e) { Context.throwAsScriptRuntimeEx(e); } }
/** * JavaScript function "back". */ @JsxFunction public void back() { try { getWindow().getWebWindow().getHistory().back(); } catch (final IOException e) { Context.throwAsScriptRuntimeEx(e); } }