|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openqa.selenium.firefox.FirefoxProfile
public class FirefoxProfile
Constructor Summary | |
---|---|
|
FirefoxProfile()
|
protected |
FirefoxProfile(java.io.File profileDir)
Constructs a firefox profile from an existing, physical profile directory. |
Method Summary | |
---|---|
java.io.File |
addExtension(java.lang.Class<?> loadResourcesUsing,
java.lang.String loadFrom)
|
void |
addExtension(java.io.File extensionToInstall)
Attempt to add an extension to install into this instance. |
protected void |
addWebDriverExtensionIfNeeded(boolean forceCreation)
|
boolean |
alwaysLoadNoFocusLib()
Returns whether the no focus library should be loaded for Firefox profiles launched on Linux, even if native events are disabled. |
void |
clean()
|
void |
deleteExtensionsCacheIfItExists()
|
boolean |
enableNativeEvents()
|
protected org.openqa.selenium.firefox.Preferences |
getAdditionalPreferences()
|
java.io.File |
getExtensionsDir()
|
int |
getPort()
|
java.io.File |
getProfileDir()
|
protected void |
installDevelopmentExtension()
|
boolean |
isRunning()
|
void |
setAcceptUntrustedCertificates(boolean acceptUntrustedSsl)
Sets whether Firefox should accept SSL certificates which have expired, signed by an unknown authority or are generally untrusted. |
void |
setAlwaysLoadNoFocusLib(boolean loadNoFocusLib)
Sets whether the no focus library should always be loaded on Linux. |
void |
setAssumeUntrustedCertificateIssuer(boolean untrustedIssuer)
By default, when accepting untrusted SSL certificates, assume that these certificates will come from an untrusted issuer or will be self signed. |
void |
setEnableNativeEvents(boolean enableNativeEvents)
|
void |
setPort(int port)
|
void |
setPreference(java.lang.String key,
boolean value)
Set a preference for this particular profile. |
void |
setPreference(java.lang.String key,
int value)
Set a preference for this particular profile. |
void |
setPreference(java.lang.String key,
java.lang.String value)
Set a preference for this particular profile. |
FirefoxProfile |
setProxyPreferences(Proxy proxy)
Set proxy preferences for this profile. |
void |
updateUserPrefs()
|
protected void |
writeNewPrefs(java.util.Map<java.lang.String,java.lang.String> prefs)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected FirefoxProfile(java.io.File profileDir)
Users who need this functionality should be using a named profile.
profileDir
- public FirefoxProfile()
Method Detail |
---|
protected void addWebDriverExtensionIfNeeded(boolean forceCreation)
public java.io.File addExtension(java.lang.Class<?> loadResourcesUsing, java.lang.String loadFrom) throws java.io.IOException
java.io.IOException
public void addExtension(java.io.File extensionToInstall) throws java.io.IOException
extensionToInstall
-
java.io.IOException
protected void installDevelopmentExtension() throws java.io.IOException
java.io.IOException
public java.io.File getProfileDir()
public java.io.File getExtensionsDir()
public void setPreference(java.lang.String key, java.lang.String value)
key
- The keyvalue
- The new value.public void setPreference(java.lang.String key, boolean value)
key
- The keyvalue
- The new value.public void setPreference(java.lang.String key, int value)
key
- The keyvalue
- The new value.public FirefoxProfile setProxyPreferences(Proxy proxy)
proxy
- The proxy preferences.
protected org.openqa.selenium.firefox.Preferences getAdditionalPreferences()
public void updateUserPrefs()
public void deleteExtensionsCacheIfItExists()
protected void writeNewPrefs(java.util.Map<java.lang.String,java.lang.String> prefs)
public int getPort()
public void setPort(int port)
public boolean enableNativeEvents()
public void setEnableNativeEvents(boolean enableNativeEvents)
public boolean alwaysLoadNoFocusLib()
public void setAlwaysLoadNoFocusLib(boolean loadNoFocusLib)
loadNoFocusLib
- Whether to always load the no focus library.public void setAcceptUntrustedCertificates(boolean acceptUntrustedSsl)
acceptUntrustedSsl
- Whether untrusted SSL certificates should be
accepted.public void setAssumeUntrustedCertificateIssuer(boolean untrustedIssuer)
untrustedIssuer
- whether to assume untrusted issuer or not.public boolean isRunning()
public void clean()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |