MCPcopy Create free account
hub / github.com/HtmlUnit/htmlunit / forward

Method forward

src/main/java/org/htmlunit/History.java:201–207  ·  view source on GitHub ↗

Goes forward one step in the navigation history, if possible. @return this navigation history, after going forward one step @throws IOException in case of error

()

Source from the content-addressed store, hash-verified

199 * @throws IOException in case of error
200 */
201 public History forward() throws IOException {
202 if (index_ < entries_.size() - 1) {
203 index_++;
204 goToUrlAtCurrentIndex();
205 }
206 return this;
207 }
208
209 /**
210 * Goes forward or backwards in the navigation history, according to whether the specified relative index

Callers 8

historyMethod · 0.95
handleForwardButtonFunction · 0.45
handleForwardButtonFunction · 0.45
pushStateMethod · 0.45
pushStateCloneMethod · 0.45
pushStateLocationHrefMethod · 0.45
replaceStateMethod · 0.45
replaceStateCloneMethod · 0.45

Calls 2

goToUrlAtCurrentIndexMethod · 0.95
sizeMethod · 0.45

Tested by 6

historyMethod · 0.76
pushStateMethod · 0.36
pushStateCloneMethod · 0.36
pushStateLocationHrefMethod · 0.36
replaceStateMethod · 0.36
replaceStateCloneMethod · 0.36