Class DesiredCapabilities

    • Constructor Detail

      • DesiredCapabilities

        public DesiredCapabilities​(java.lang.String browser,
                                   java.lang.String version,
                                   Platform platform)
      • DesiredCapabilities

        public DesiredCapabilities()
      • DesiredCapabilities

        public DesiredCapabilities​(java.util.Map<java.lang.String,​?> rawMap)
      • DesiredCapabilities

        public DesiredCapabilities​(Capabilities other)
      • DesiredCapabilities

        public DesiredCapabilities​(Capabilities... others)
    • Method Detail

      • setBrowserName

        public void setBrowserName​(java.lang.String browserName)
      • setVersion

        public void setVersion​(java.lang.String version)
      • setPlatform

        public void setPlatform​(Platform platform)
      • setJavascriptEnabled

        public void setJavascriptEnabled​(boolean javascriptEnabled)
        This setting has no effect in W3C sessions, and JWP support is going away soon.
      • acceptInsecureCerts

        public boolean acceptInsecureCerts()
      • setAcceptInsecureCerts

        public void setAcceptInsecureCerts​(boolean acceptInsecureCerts)
      • merge

        public DesiredCapabilities merge​(Capabilities extraCapabilities)
        Merges the extra capabilities provided into this DesiredCapabilities instance. If capabilities with the same name exist in this instance, they will be overridden by the values from the extraCapabilities object.
        Specified by:
        merge in interface Capabilities
        merge in class MutableCapabilities
        extraCapabilities - Additional capabilities to be added.
        DesiredCapabilities after the merge