Click here to Skip to main content
15,884,628 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello, I need some help. I have a Java 1.8 test application that uses Selenium 3 and the Firefox Geckodriver. The tests work perfectly when I'm at work but fail when I'm trying to work at home. Since I work exclusively on a virtual machine, and have cloned the work virtual machine for my home development environment I know that it is not the environment. The only difference is that at home I have to use our company VPN, Cisco AnyConnect. Today at work I logged into our VPN and got the same results I get at home so I pretty sure it has something to do with the VPN. What happens is this, I issue the call to WebDriver "get" method, a window appears the vanishes and I get the follow stack trace.

Any idea what might be going on?

Thanks,
Spence

--------------------------------------------------

Reached error page: about:neterror?e=unknownProtocolFound&u=vmware-plugin%3A//csd%3FsessionId%3Di9Rb-2m6Z-cpPq-6fh7%26appName%3Dui%26version%3D2016&c=&f=regular&d=Firefox%20doesn%E2%80%99t%20know%20how%20to%20open%20this%20address%2C%20because%20one%20of%20the%20following%20protocols%20%28vmware-plugin%29%20isn%E2%80%99t%20associated%20with%20any%20program%20or%20is%20not%20allowed%20in%20this%20context.
Build info: version: '3.4.0', revision: 'unknown', time: 'unknown'
System info: host: 'TAKE20', ip: 'xx.xx.xx.xxx', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_121'
Driver info: org.openqa.selenium.firefox.FirefoxDriver
Capabilities [{moz:profile=C:\Users\skeller\AppData\Local\Temp\rust_mozprofile.K7m7yeY1Bvbn, rotatable=false, timeouts={implicit=0.0, pageLoad=300000.0, script=30000.0}, pageLoadStrategy=normal, platform=ANY, specificationLevel=0.0, moz:accessibilityChecks=false, acceptInsecureCerts=false, browserVersion=54.0.1, platformVersion=6.1, moz:processID=1380.0, browserName=firefox, javascriptEnabled=true, platformName=windows_nt}]
Session ID: d1a8a317-e468-4e3a-946a-6f06949b71f0
org.openqa.selenium.WebDriverException: Reached error page: about:neterror?e=unknownProtocolFound&u=vmware-plugin%3A//csd%3FsessionId%3Di9Rb-2m6Z-cpPq-6fh7%26appName%3Dui%26version%3D2016&c=&f=regular&d=Firefox%20doesn%E2%80%99t%20know%20how%20to%20open%20this%20address%2C%20because%20one%20of%20the%20following%20protocols%20%28vmware-plugin%29%20isn%E2%80%99t%20associated%20with%20any%20program%20or%20is%20not%20allowed%20in%20this%20context.
Build info: version: '3.4.0', revision: 'unknown', time: 'unknown'
System info: host: 'TAKE20', ip: 'xx.xx.xx.xxx', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_121'
Driver info: org.openqa.selenium.firefox.FirefoxDriver
Capabilities [{moz:profile=C:\Users\skeller\AppData\Local\Temp\rust_mozprofile.K7m7yeY1Bvbn, rotatable=false, timeouts={implicit=0.0, pageLoad=300000.0, script=30000.0}, pageLoadStrategy=normal, platform=ANY, specificationLevel=0.0, moz:accessibilityChecks=false, acceptInsecureCerts=false, browserVersion=54.0.1, platformVersion=6.1, moz:processID=1380.0, browserName=firefox, javascriptEnabled=true, platformName=windows_nt}]
Session ID: d1a8a317-e468-4e3a-946a-6f06949b71f0
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.createException(W3CHttpResponseCodec.java:150)
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:115)
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:45)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:164)
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:82)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:637)
at org.openqa.selenium.remote.RemoteWebDriver.get(RemoteWebDriver.java:364)
at com.solidfire.vat.framework.browsers.VatBrowser.connect(VatBrowser.java:55)
at com.solidfire.vat.test_steps.BrowserSteps.openDefaultVcenterUrl(BrowserSteps.java:115)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.solidfire.vat.framework.threads.ThreadExecutor.call(ThreadExecutor.java:58)
at com.solidfire.vat.framework.threads.ThreadExecutor.call(ThreadExecutor.java:23)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

What I have tried:

I have search the web and can not find anything on this. I have also pretty much isolated the problem to be with Cisco Anyconnect and Selenium.

Thanks
Spence
Posted
Updated 1-Sep-17 15:24pm

1 solution

You're really only going to get guesses to this one since you've taken a work machine out of the environment it was design and configured to run in.

My first guess, the browsers on the machine were configured to go through a proxy server at work, one which does not exist at home.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900