org.openqa.selenium.chrome
Class ChromeProfile
java.lang.Object
org.openqa.selenium.chrome.ChromeProfile
public class ChromeProfile
- extends java.lang.Object
Manages the extension used by the ChromeDriver
.
- Author:
- [email protected] (Jason Leyba)
Constructor Summary |
ChromeProfile()
Creates a new profile using a temporary directory. |
ChromeProfile(java.io.File directory)
Create a new profile using the given directory. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_PROFILE
public static final ChromeProfile DEFAULT_PROFILE
ChromeProfile
public ChromeProfile(java.io.File directory)
- Create a new profile using the given directory. Assumes that the directory
exists and has the required files.
- Parameters:
directory
- The directory to use.
ChromeProfile
public ChromeProfile()
- Creates a new profile using a temporary directory.
setAcceptUntrustedCertificates
public void setAcceptUntrustedCertificates(boolean acceptUntrustedSsl)
- Sets whether Chrome should accept SSL certificates which have expired,
signed by an unknown authority or are generally untrusted.
This is set to true by default.
- Parameters:
acceptUntrustedSsl
- Whether untrusted SSL certificates should be
accepted.
getUntrustedCertificatesFlag
public java.lang.String getUntrustedCertificatesFlag()
getDirectory
public java.io.File getDirectory()
getProxy
public Proxy getProxy()
setProxy
public void setProxy(Proxy proxy)
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
Copyright © 2010. All Rights Reserved.