- All Known Implementing Classes:
JavaFxWebEngine
public interface IWebEngine
Provides an abstraction to the web engine, so that a mock engine can be utilized in unit tests, or a different web engine
could be utilized in future versions of this framework.
- Author:
- Rob Terpilowski
-
Method Summary
Modifier and Type Method Description ObjectexecuteScript(String command)Executes the specified JavaScript Commandjavafx.concurrent.Worker<Void>getLoadWorker()Gets a worked which will be notified when a web page has finished loading.voidload(String url)Loads the specified URLvoidloadContent(String content)Loads the given HTML content directly.
-
Method Details
-
executeScript
Executes the specified JavaScript Command- Parameters:
command- The command to execute- Returns:
- The object returned by the script (if any).
-
getLoadWorker
javafx.concurrent.Worker<Void> getLoadWorker()Gets a worked which will be notified when a web page has finished loading.- Returns:
- The worker
-
load
Loads the specified URL- Parameters:
url- The URL to load in the engine.
-
loadContent
Loads the given HTML content directly.- Parameters:
content- The HTML text to load in the engine.
-