Interface BrowserCapabilitiesRegistry


  • public interface BrowserCapabilitiesRegistry
    A registry that holds all browser mappable types
    Author:
    Karel Piwko
    • Method Detail

      • getEntryFor

        BrowserCapabilities getEntryFor​(String key)
                                 throws IllegalStateException
        Checks if the registry has an entry for given key
        Parameters:
        key - the human readable name for the browser, e.g. firefox
        Returns:
        The BrowserCapabilities object for given key or null if key is null, empty or it is not in the registry
        Throws:
        IllegalStateException
      • getEntryByImplementationClassName

        @Deprecated
        BrowserCapabilities getEntryByImplementationClassName​(String className)
        Deprecated.
        Checks if the registry has an entry for given implementation class name.

        This is a legacy method allowing backwards compatibility with Drone 1.0.0

        Parameters:
        className - Implementation class for appropriate WebDriver type
        Returns:
        The BrowserCapabilities object for given implementation class or null if className is null, empty or it is not in the registry