Interface CloseOptions


public interface CloseOptions
The options for the Browser.close(CloseOptions) method.
Since:
7.6
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static final class 
    A builder of CloseOptions.
  • Method Summary

    Modifier and Type
    Method
    Description
    Creates a new CloseOptions builder.
    default boolean
    Returns true if the registered on the web page beforeunload and unload JavaScript events should be fired when closing a browser instance.
  • Method Details

    • newBuilder

      static CloseOptions.Builder newBuilder()
      Creates a new CloseOptions builder.
      Returns:
      a new CloseOptions.Builder instance
    • shouldFireBeforeUnload

      default boolean shouldFireBeforeUnload()
      Returns true if the registered on the web page beforeunload and unload JavaScript events should be fired when closing a browser instance.