Interface IWebEngine

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
    Object executeScript​(String command)
    Executes the specified JavaScript Command
    javafx.concurrent.Worker<Void> getLoadWorker()
    Gets a worked which will be notified when a web page has finished loading.
    void load​(String url)
    Loads the specified URL
    void loadContent​(String content)
    Loads the given HTML content directly.
  • Method Details

    • executeScript

      Object executeScript​(String command)
      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

      void load​(String url)
      Loads the specified URL
      Parameters:
      url - The URL to load in the engine.
    • loadContent

      void loadContent​(String content)
      Loads the given HTML content directly.
      Parameters:
      content - The HTML text to load in the engine.