Loads the content of the contained frames. This is done after the page is completely loaded, to allow script contained in the frames to reference elements from the page located after the closing </frame> tag. @throws FailingHttpStatusCodeException if the server returns a failing status code AN
()
| 1995 | * {@link WebClientOptions#setThrowExceptionOnFailingStatusCode(boolean)} is set to {@code true} |
| 1996 | */ |
| 1997 | void loadFrames() throws FailingHttpStatusCodeException { |
| 1998 | for (final BaseFrameElement frameElement : new ArrayList<>(frameElements_)) { |
| 1999 | // test if the frame should really be loaded: |
| 2000 | // if a script has already changed its content, it should be skipped |
| 2001 | // use == and not equals(...) to identify initial content (versus URL set to "about:blank") |
| 2002 | if (frameElement.getEnclosedWindow() != null |
| 2003 | && UrlUtils.URL_ABOUT_BLANK == frameElement.getEnclosedPage().getUrl() |
| 2004 | && !frameElement.isContentLoaded()) { |
| 2005 | frameElement.loadInnerPage(); |
| 2006 | } |
| 2007 | } |
| 2008 | } |
| 2009 | |
| 2010 | /** |
| 2011 | * Gives a basic representation for debugging purposes. |
no test coverage detected