Adding a listener to the web browser

Hi there,

I’m currrently working with the new web browser module and I’m having difficulty capturing when a web page is fully loaded. I was thinking I could register a new load listener to tell me when it’s finished loading (via the docs) and have it call a custom method. I’m not sure how you’d implement this in jython/ignition. There is an ‘addLoadListener’ method (…browser.getBrowser().addLoadListener…), but I’m not sure what the parameters are for it, or how to implement it.

Is this possible, and if not, is there possibly another way to accomplish what I’m asking for?

Also, is there a manual for the web browser anywhere?

This is the code from the jxBrowser docs for adding a loadListener.

browser.addLoadListener(new LoadAdapter() {
    public void onFinishLoadingFrame(FinishLoadingEvent event) {
        if (event.isMainFrame()) {
            // web page is loaded completely including all frames

The docs … oad-events


Edit: You can disregard, I was able to figure it out. Thanks again