webdriver を使用して、Internet Explorer でプロキシ設定を設定したいと考えています。
現在、私はこのコードを使用しています:
System.setProperty("webdriver.ie.driver", "Path to IEDriverServer.exe");
Proxy proxy = new Proxy();
proxy.setProxyAutoconfigUrl("proxyhost:port");
DesiredCapabilities capability = new DesiredCapabilities();
capability.setBrowserName(DesiredCapabilities.internetExplorer().getBrowserName());
capability.setCapability(CapabilityType.PROXY, proxy);
driver=new InternetExplorerDriver(capability);
しかし、コンソールに次のメッセージを表示する以外は何もしません:
org.openqa.selenium.browserlaunchers.WindowsProxyManager backupRegistrySettings
INFO: Backing up registry settings...
ゾーンに関連する設定と、IEDriver を使用するために必要なすべての設定を行いました。
プロキシ構成を使用せずに、webdriver を介して Internet Explorer を使用できます。
Windows 7 で IEDriver.exe バージョン 2.28.0 を使用して IE9 を使用しています。
誰かが私にこれを回避する方法を提案できますか?どんな助けでも大歓迎です。