Comment #3 on issue 6101 by
phongsal...@gmail.com: Help to set no proxy for
InternetExplorerDriver
http://code.google.com/p/selenium/issues/detail?id=6101
The code didn't work. The failure as below
Aug 14, 2013 9:09:57 AM
org.openqa.selenium.browserlaunchers.WindowsProxyManager
backupRegistrySettings
INFO: Backing up registry settings...
Exception in thread "main" java.lang.RuntimeException: Bug extracting
hudsuckr
at
org.openqa.selenium.browserlaunchers.WindowsProxyManager.extractHudsuckr(WindowsProxyManager.java:575)
at
org.openqa.selenium.browserlaunchers.WindowsProxyManager.runHudsuckr(WindowsProxyManager.java:585)
at
org.openqa.selenium.browserlaunchers.WindowsProxyManager.backupHudsuckrSettings(WindowsProxyManager.java:624)
at
org.openqa.selenium.browserlaunchers.WindowsProxyManager.backupRegistrySettings(WindowsProxyManager.java:286)
at
org.openqa.selenium.ie.InternetExplorerDriver.prepareProxy(InternetExplorerDriver.java:296)
at
org.openqa.selenium.ie.InternetExplorerDriver.run(InternetExplorerDriver.java:180)
at
org.openqa.selenium.ie.InternetExplorerDriver.<init>(InternetExplorerDriver.java:174)
at
org.openqa.selenium.ie.InternetExplorerDriver.<init>(InternetExplorerDriver.java:147)
at acccm.Testing.TID02.main(TID02.java:52)
Caused by: java.io.IOException: Unable to locate: hudsuckr/hudsuckr.exe
at org.openqa.selenium.io.FileHandler.locateResource(FileHandler.java:86)
at org.openqa.selenium.io.FileHandler.copyResource(FileHandler.java:55)
at
org.openqa.selenium.browserlaunchers.WindowsProxyManager.extractHudsuckr(WindowsProxyManager.java:572)
... 8 more
MY CODE:
String ieDriverPath = Constants.PROJECT_PATH
+ "\\src\\lib\\handler\\IEDriverServer.exe";
DesiredCapabilities ieCapabilities = new DesiredCapabilities();
org.openqa.selenium.Proxy proxy = new org.openqa.selenium.Proxy();
proxy.setProxyType(org.openqa.selenium.Proxy.ProxyType.DIRECT);
ieCapabilities.setCapability(CapabilityType.PROXY, proxy);
System.setProperty("webdriver.ie.driver", ieDriverPath);
WebDriver webDriver = new InternetExplorerDriver(ieCapabilities);
webDriver.manage().timeouts().implicitlyWait(Constants.SE_WAIT_IN_SECOND,
TimeUnit.SECONDS);
Please help me to fix that problem. Thanks a lot.