Forum Discussion
Hi,
I haven't been able to prove it, but I think it might be to do with the version of org.apache.httpcomponents.httpclient that SoapUI is using? That classSSLConnectionSocketFactor
You might get away with replacing httpclient and httpcore with the later versions in the SoapUI /lib folder, but like I say, I cannot prove this yet.
I was trying to recreate the error by running your script, having added selenium-chrome-driver-2.53.1.jar and selenium-java-2.53.1.jar to /bin/ext/, but I get NoClassDefFound error on [org/openqa/selenium/html5/LocationContext] instead - Have you added any other dependencies? Which SoapUI version are you using?
It would be good to hear how you get on, because I have been considering updating those Apache http jars in the source code for other reasons, but it might also create some issues / testing effort for me.
Thanks,
Rupert
Also, someone posted a workaround on - https://github.com/seleniumhq/selenium/issues/388
ProxySelector proxy = ProxySelector.getDefault();
WsdlProject wsdlProject = new WsdlProject("");
ProxySelector.setDefault(proxy);
WebDriver driver = new FirefoxDriver();
Which does not seem to work either. Possible bug in SOAPUI? Does SOAPUI supports selenium?
- rupert_anderson8 years agoValued Contributor
Hi,
SoapUI is not designed to run Selenium as part of its standard product suite, so it cannot really be considered a bug.
However, I think I've got your script to run by adding the following list of jars:
commons-exec-1.3.jar
gson-2.8.0.jar
selenium-api-2.53.1.jar
selenium-chrome-driver-2.53.1.jar
selenium-java-2.53.1.jar
selenium-remote-driver-2.53.1.jar
selenium-server-2.53.1.jar
I also needed to update my Chrome driver to this one:
http://chromedriver.storage.googleapis.com/index.html?path=2.25/
The script now runs, I can see chrome start, and it completes without error or output.
Can you give it a shot please?
regards,
Rupert
- chiragverma1238 years agoContributor
I tried everything but still the same error below:
09:36:51,601 ERROR [SoapUI] An error occurred [Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure.
Build info: version: '2.53.1', revision: 'a36b8b1cd5757287168e54b817830adce9b0158d', time: '2016-06-30 19:26:09'
System info: host: 'DTP-DEV017', ip: '10.50.6.185', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_101'
Driver info: driver.version: ChromeDriver], see error log for details- rupert_anderson8 years agoValued Contributor
Hi,
I think that is a chrome driver error and that you have probably resolved the SoapUI code dependency issues - I can see that you are using the same version of the chrome driver (2.53.1) that I am, but your O/S is Windows 10 and you're also using java 1.8, whereas I am on OSX and using java 1.7.79, possibly a factor.
I can try on my windows 10 machine at home at some point.
Are you going through a proxy of any kind?
Regards,
Rupert
Related Content
- 12 months ago