Class DesiredCapabilities

  • All Implemented Interfaces:
    org.openqa.selenium.Capabilities

    public class DesiredCapabilities
    extends org.openqa.selenium.MutableCapabilities
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      boolean acceptInsecureCerts()  
      static DesiredCapabilities htmlUnit()
      Deprecated.
      DesiredCapabilities merge​(org.openqa.selenium.Capabilities extraCapabilities)
      Merges the extra capabilities provided into this DesiredCapabilities instance.
      void setAcceptInsecureCerts​(boolean acceptInsecureCerts)  
      void setBrowserName​(java.lang.String browserName)  
      void setJavascriptEnabled​(boolean javascriptEnabled)  
      void setPlatform​(org.openqa.selenium.Platform platform)  
      void setVersion​(java.lang.String version)  
      • Methods inherited from class org.openqa.selenium.MutableCapabilities

        amendHashCode, asMap, equals, getCapability, getCapabilityNames, hashCode, setCapability, setCapability, setCapability, setCapability, toJson, toString
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface org.openqa.selenium.Capabilities

        getBrowserName, getBrowserVersion, getPlatform, getPlatformName, getVersion, is
    • Constructor Detail

      • DesiredCapabilities

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

        public DesiredCapabilities()
      • DesiredCapabilities

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

        public DesiredCapabilities​(org.openqa.selenium.Capabilities other)
      • DesiredCapabilities

        public DesiredCapabilities​(org.openqa.selenium.Capabilities... others)
    • Method Detail

      • setBrowserName

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

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

        public void setPlatform​(org.openqa.selenium.Platform platform)
      • setJavascriptEnabled

        public void setJavascriptEnabled​(boolean javascriptEnabled)
      • acceptInsecureCerts

        public boolean acceptInsecureCerts()
      • setAcceptInsecureCerts

        public void setAcceptInsecureCerts​(boolean acceptInsecureCerts)
      • merge

        public DesiredCapabilities merge​(org.openqa.selenium.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 org.openqa.selenium.Capabilities
        Overrides:
        merge in class org.openqa.selenium.MutableCapabilities
        Parameters:
        extraCapabilities - Additional capabilities to be added.
        Returns:
        DesiredCapabilities after the merge