org.openqa.selenium.chrome
Class ChromeProfile

java.lang.Object
  extended by org.openqa.selenium.chrome.ChromeProfile

public class ChromeProfile
extends java.lang.Object

Manages the extension used by the ChromeDriver.

Author:
[email protected] (Jason Leyba)

Field Summary
static ChromeProfile DEFAULT_PROFILE
           
 
Constructor Summary
ChromeProfile()
          Creates a new profile using a temporary directory.
ChromeProfile(java.io.File directory)
          Create a new profile using the given directory.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.io.File getDirectory()
           
 Proxy getProxy()
           
 java.lang.String getUntrustedCertificatesFlag()
           
 void setAcceptUntrustedCertificates(boolean acceptUntrustedSsl)
          Sets whether Chrome should accept SSL certificates which have expired, signed by an unknown authority or are generally untrusted.
 void setProxy(Proxy proxy)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_PROFILE

public static final ChromeProfile DEFAULT_PROFILE
Constructor Detail

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.

Method Detail

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 © 2011. All Rights Reserved.