I'm having an issue with a program I'm working on... I have a listener for the webengines worker state, so that when state = SUCCEEDED it will carry on with the rest of the code.
The problem is that the website I'm loading has a lot of ads and takes a few minutes for the state to finally reach "SUCCEEDED".
I plan on using a timer, but the only way to trigger the listener is if the state changes, is there any way I could manually change the webengines worker state?
something like:
webEngine.getLoadWorker().getState() = Worker.State.SUCCEEDED;
This code obviously doesn't work, but you get the point.