Class SafariDriver

    • Constructor Detail

      • SafariDriver

        public SafariDriver()
        Initializes a new SafariDriver} class with default SafariOptions.
      • SafariDriver

        public SafariDriver​(SafariOptions safariOptions)
        Initializes a new SafariDriver using the specified SafariOptions.
        Parameters:
        safariOptions - safari specific options / capabilities for the driver
      • SafariDriver

        public SafariDriver​(SafariDriverService safariService)
        Initializes a new SafariDriver backed by the specified SafariDriverService.
        Parameters:
        safariService - preconfigured safari service
      • SafariDriver

        public SafariDriver​(DriverService safariServer,
                            SafariOptions safariOptions)
        Initializes a new SafariDriver using the specified SafariOptions.
        Parameters:
        safariOptions - safari specific options / capabilities for the driver
    • Method Detail

      • setPermissions

        public void setPermissions​(java.lang.String permission,
                                   boolean value)
        Description copied from interface: HasPermissions
        Set permission on the browser. The only supported permission at this time is "getUserMedia".
        Specified by:
        setPermissions in interface HasPermissions
        Parameters:
        permission - the name of the item to set permission on.
        value - whether the permission has been granted.
      • getPermissions

        public java.util.Map<java.lang.String,​java.lang.Boolean> getPermissions()
        Specified by:
        getPermissions in interface HasPermissions
        Returns:
        each permission and whether it is allowed or not.
      • attachDebugger

        public void attachDebugger()
        Description copied from interface: HasDebugger
        This opens Safari's Web Inspector If driver subsequently executes script of "debugger;" the execution will pause, no additional commands will be processed, and the code will time out.
        Specified by:
        attachDebugger in interface HasDebugger