package guitests.guihandles;

import javafx.scene.Node;

/**
 * A handler for the {@code BrowserPanel} of the UI.
 */
public class BrowserPanelHandle extends NodeHandle<Node> {

    public static final String BROWSER_ID = "#browser";

    public BrowserPanelHandle(Node browserPanelNode) {
        super(browserPanelNode);
    }
}

@@ -38,22 +38,117 @@
 java
-fx.scene.Node;
+.net.MalformedURLException;%0Aimport java.net.URL;%0A%0Aimport javafx.scene.Node;%0Aimport javafx.scene.web.WebView;%0A
 %0A%0A/*
@@ -378,16 +378,16 @@
 Node) %7B%0A
-
         
@@ -416,11 +416,267 @@
 );%0A    %7D
+%0A%0A    /**%0A     * Returns the %7B@code URL%7D of the currently loaded page.%0A     */%0A    public URL getLoadedUrl() throws MalformedURLException %7B%0A        WebView webView = getChildNode(BROWSER_ID);%0A        return new URL(webView.getEngine().getLocation());%0A    %7D
 %0A%7D%0A

Add getLoadedUrl()