Hub and firefox with specific profile
Trying to start Firefox with specific profile:
capabilities = DesiredCapabilities.firefox();
ProfilesIni ini = new ProfilesIni();
FirefoxProfile profile = ini.getProfile("default");
capabilities.setCapability(FirefoxDriver.PROFILE, profile);
My hub (selenium-server-2.45) just ignoring this request. After some time, I receive (in my IDE) results:
Tests run: 36, Failures: 2, Errors: 0, Skipped: 34, Time elapsed: 29.042 sec <<< FAILURE! - in TestSuite
init(ru.at.etzp.tests.site.ExploreTest) Time elapsed: 28.21 sec <<< FAILURE!
org.openqa.selenium.WebDriverException: <html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>
<title>Error 500 com.google.gson.JsonParseException: Failed parsing JSON source: JsonReader at line 1 column 20713174 to Json</title>
</head>
<body>
<h2>HTTP ERROR: 500</h2>
<p>Problem accessing /wd/hub/session. Reason:
<pre> com.google.gson.JsonParseException: Failed parsing JSON source: JsonReader at line 1 column 20713174 to Json</pre></p>
<hr /><i><small>Powered by Jetty://</small></i>
</body>
</html>
Command duration or timeout: 24.85 seconds
Build info: version: '2.45.0', revision: '5017cb8e7ca8e37638dc3091b2440b90a1d8686f', time: '2015-02-27 09:10:26'
System info: host: 'paveld', ip: '192.168.50.111', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_31'
If I create just anonymous profile like this:
FirefoxProfile profile = new FirefoxProfile();
capabilities.setCapability(FirefoxDriver.PROFILE, profile);
hub works perfectly.
I'm also trying to start firefox with specific profile localy - and it also works ok.
Are there any problems with Firefox specific profiles and hub?
@breakmt are you trying to run the tests on a selenium grid? I am confused since you have mentioned "hub" in the issue description.
@AJ-72 yes, correct, I'm trying to run Firefox with specific profile on a selenium grid and I get error. When I run tests locally - it works ok.
@breakmt for us to reproduce, can you provide the profile in question.
a month has passed with no response. @breakmt if this still an issue - feel free to reopen, but if you do - please provide the profile in question as lukeis asked so we can continue helping you
Hi. I have the same issue here.
WebDriverException: Message:
HTTP ERROR: 500
Problem accessing /wd/hub/session. Reason:
com.google.gson.JsonParseException: Failed parsing JSON source: JsonReader at line 1 column 15933441 to Json
Powered by Jetty://;