org.openqa.selenium.browserlaunchers
Class WindowsProxyManager
java.lang.Object
org.openqa.selenium.browserlaunchers.WindowsProxyManager
public class WindowsProxyManager
- extends Object
Constructor Summary |
WindowsProxyManager(boolean customPACappropriate,
String sessionId,
int port,
int portDriversShouldContact)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
REG_KEY_BACKUP_READY
protected static final String REG_KEY_BACKUP_READY
- See Also:
- Constant Field Values
COOKIE_SUFFIX
protected static final String COOKIE_SUFFIX
- See Also:
- Constant Field Values
HIDDEN_COOKIE_DIR
protected static final File HIDDEN_COOKIE_DIR
REG_KEY_BASE
protected static String REG_KEY_BASE
WindowsProxyManager
public WindowsProxyManager(boolean customPACappropriate,
String sessionId,
int port,
int portDriversShouldContact)
setChangeMaxConnections
public void setChangeMaxConnections(boolean changeMaxConnections)
getChangeMaxConnections
public boolean getChangeMaxConnections()
getCustomProxyPACDir
public File getCustomProxyPACDir()
init
protected void init()
handleEvilPopupMgrBackup
protected void handleEvilPopupMgrBackup()
setBaseRegKey
public static void setBaseRegKey(String base)
changeRegistrySettings
public void changeRegistrySettings(Capabilities options)
backupRegistrySettings
public void backupRegistrySettings()
restoreRegistrySettings
public void restoreRegistrySettings(boolean ensureCleanSession)
hideCookies
protected static boolean hideCookies(File cookieDir,
String cookieSuffix,
File hiddenCookieDir)
- Hides all previously existing user cookies, found in the WinXP directory structure, by moving
them to a different directory.
restoreCookies
protected static boolean restoreCookies(File cookieDir,
String cookieSuffix,
File hiddenCookieDir)
- Restores previously hidden user cookies, if any.
deleteFlatDirContents
protected static void deleteFlatDirContents(File dir,
String suffix)
- Deletes all files contained by the given directory.
- Parameters:
dir
- the directory to delete the contents ofsuffix
- if not null, only files with this suffix will be deleted.
traceWith
public static void traceWith(Logger log)
Copyright © 2012. All Rights Reserved.