Re: [selenium-users] Confused about Firefox version and the famous Timeout error

1,390 views
Skip to first unread message

Krishnan Mahadevan

unread,
Nov 29, 2012, 4:33:09 AM11/29/12
to seleniu...@googlegroups.com
You should be able to get that version of FF (v10) to work successfully if you are using Selenium 2.26.0 (latest released version).

On a side note, I would urge you to use firefox profile manager on the solaris machine and get rid of all existing profiles before you retry.

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"



On Thu, Nov 29, 2012 at 1:28 PM, dchucks <deba...@gmail.com> wrote:
Sorry if I am repeating this. On searching this forum for the infamous "Timed out waiting for profile to be created" error I came across a thread which had the same issues as mine at https://groups.google.com/d/topic/selenium-users/zmUt4h1cths/discussion. Sadly I didn't get any reply there. My friends tell that this is an issue related to Firefox version. On a thread at the Spring Forum (for a similar issue on Spring Roo) someone replied I know that Selenium only works with Forefox 4 or 5. And I am terribly confused here. Does it mean that Selenium doesn't work with the newer versions of Firefox (my Windows system has V 16.0.2 installed at the time of writing, I am not sure what's the highest version of Firefox Selenium supported for Firefox on Solaris/Linux). Can  anyone please guide me on this? My problem is that with the Selenium standalone jar I am able to run the tests on Firefox without any issues, but not on Solaris. The Firefox version on Solaris is 10.x.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/8X1scxF8g28J.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

dchucks

unread,
Nov 29, 2012, 7:02:16 AM11/29/12
to seleniu...@googlegroups.com
Thanks Krishnan. I am indeed using 2.26.0 of Selenium. As for profiles, I know that there is a default Firefox profile that already existed and I created a custom one for the tests specifically and pass it using the firefoxProfileTemplate parameter (which seems to be totally ignored by the tool). Do you mean that I remove all profiles (including the "default one) on Firefox before proceeding?

Krishnan Mahadevan

unread,
Nov 29, 2012, 7:53:01 AM11/29/12
to seleniu...@googlegroups.com
Yup. But make sure you have taken backup of all your bookmarks (so that you dont end up losing them).

And how exactly are you passing the firefoxProfileTemplate ? 

Can you please share the exact command ?

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"



To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/qbpXNsz8HcsJ.

dchucks

unread,
Nov 29, 2012, 8:17:17 AM11/29/12
to seleniu...@googlegroups.com
Hi again,

About passing the firefoxProfileTemplate parameter, I was earlier passing it as follows:

DISPLAY=:99 java -jar /opt/weblogic/hudson.slave/workspace/xx.xxx.xxx.xx_tests.selenium/selenium-server-standalone-2.26.0.jar -singleWindow -htmlSuite "*firefox /usr/lib/firefox/firefox-bin" "http://superuser:superu...@xx.xxx.xxx.xx:xxxx" "/opt/weblogic/hudson.slave/workspace/xx.xxx.xxx.xx_tests.selenium/myapp.smoke.test/src/test/functionalTest/HUDSON_TestSuite.html" "/opt/weblogic/hudson.slave/workspace/xx.xxx.xxx.xx_tests.selenium/myapp.smoke.test/test-reports/results_dc.html" -firefoxProfileTemplate "/opt/weblogic/.mozilla/firefox/2or1q91p.copis-selenium"


Deleting all Firefox profiles (including the Default didn't work) and I get the same error, note that I didn't pass the firefoxProfileTemplate parameter now:(

14:42:13  + java -jar /opt/weblogic/hudson.slave/workspace/xx.xxx.xxx.xx_tests.selenium/selenium-server-standalone-2.26.0.jar -singleWindow -htmlSuite *firefox /usr/lib/firefox/firefox-bin http://superuser:superu...@xx.xxx.xxx.xx:xxxx /opt/weblogic/hudson.slave/workspace/xx.xxx.xxx.xx_tests.selenium/myapp.smoke.test/src/test/functionalTest/HUDSON_TestSuite.html /opt/weblogic/hudson.slave/workspace/xx.xxx.xxx.xx_tests.selenium/myapp.smoke.test/test-reports/results_dc.html
14:42:13  DISPLAY=:99
14:42:13  Nov 29, 2012 2:42:13 PM org.openqa.grid.selenium.GridLauncher main
14:42:13  INFO: Launching a standalone server
14:42:14  14:42:14.146 INFO - Java: Sun Microsystems Inc. 10.0-b19
14:42:14  14:42:14.148 INFO - OS: SunOS 5.10 sparc
14:42:14  14:42:14.167 INFO - v2.26.0, with Core v2.26.0. Built from revision 18041
14:42:14  14:42:14.445 INFO - RemoteWebDriver instances should connect to: http://127.0.0.1:4444/wd/hub
14:42:14  14:42:14.447 INFO - Version Jetty/5.1.x
14:42:14  14:42:14.447 INFO - Started HttpContext[/selenium-server/driver,/selenium-server/driver]
14:42:14  14:42:14.448 INFO - Started HttpContext[/selenium-server,/selenium-server]
14:42:14  14:42:14.449 INFO - Started HttpContext[/,/]
14:42:14  14:42:14.704 INFO - Started org.openqa.jetty.jetty.servlet.ServletHandler@19b04e2
14:42:14  14:42:14.705 INFO - Started HttpContext[/wd,/wd]
14:42:14  14:42:14.709 INFO - Started SocketListener on 0.0.0.0:4444
14:42:14  14:42:14.709 INFO - Started org.openqa.jetty.jetty.Server@bfc8e0
14:42:14  jar:file:/opt/weblogic/hudson.slave/workspace/xx.xxx.xxx.xx_tests.selenium/selenium-server-standalone-2.26.0.jar!/customProfileDirCUSTFFCHROME
14:42:15  14:42:14.936 INFO - Preparing Firefox profile...
14:42:35  HTML suite exception seen:
14:42:35  java.lang.RuntimeException: Timed out waiting for profile to be created!
14:42:35      at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.waitForFullProfileToBeCreated(FirefoxChromeLauncher.java:308)
14:42:35      at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.populateCustomProfileDirectory(FirefoxChromeLauncher.java:120)
14:42:35      at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.launch(FirefoxChromeLauncher.java:90)
14:42:35      at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.launchHTMLSuite(FirefoxChromeLauncher.java:340)
14:42:35      at org.openqa.selenium.server.browserlaunchers.FirefoxLauncher.launchHTMLSuite(FirefoxLauncher.java:110)
14:42:35      at org.openqa.selenium.server.htmlrunner.HTMLLauncher.runHTMLSuite(HTMLLauncher.java:145)
14:42:35      at org.openqa.selenium.server.htmlrunner.HTMLLauncher.runHTMLSuite(HTMLLauncher.java:196)
14:42:35      at org.openqa.selenium.server.SeleniumServer.runHtmlSuite(SeleniumServer.java:612)
14:42:35      at org.openqa.selenium.server.SeleniumServer.boot(SeleniumServer.java:286)
14:42:35      at org.openqa.selenium.server.SeleniumServer.main(SeleniumServer.java:244)
14:42:35      at org.openqa.grid.selenium.GridLauncher.main(GridLauncher.java:54)
14:42:35  14:42:35.399 INFO - Shutting down...
14:42:36  Publishing Selenium report...
14:42:44  [DEBUG] Skipping watched dependency update for build: xx.xxx.xxx.xx_tests.selenium.new #9 due to result: FAILURE
14:42:44  Finished: FAILURE

Krishnan Mahadevan

unread,
Nov 29, 2012, 8:39:14 AM11/29/12
to seleniu...@googlegroups.com
Looks like you are working with the jenkins selenium plugin jar. I dont know what all does it do internally, but can you please just start the selenium server using 

java -jar selenium-server-standalone-2.26.0.jar (after you download it from the selenium downloads page) ?


Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/F2NbJ2awjTkJ.

dchucks

unread,
Nov 30, 2012, 2:43:37 AM11/30/12
to seleniu...@googlegroups.com
Hi Krishnan,

Thanks. Indeed I am using this on Hudson. Currently I am trying this with the standalone jar, as mentioned in previous mails but even with the Selenium Maven plugin I get the same behaviour on Hudson. I tried this as you suggested:

echo "Start...";
java
-jar /opt/weblogic/hudson.slave/workspace/xx.xxx.xxx.xx_tests.selenium/selenium-server-standalone-2.26.0.jar
echo
"Done...";

Not sure if the selenium server did get started because an "echo" that added after the java -jar command didn't print anything and the Hudson job doesn't terminate and keeps on working indefinitely (no time-outs either), following is what I got in logs:

09:07:44  Started by user HUDSON.USER
09:07:44  Building remotely on xxxx-xxxx-xxx - xx.xxx.xxx.xx
09:07:44  appied 1 artifact from xx.xxx.xxx.xx_deploy.revision #56
09:07:45  [xx.xxx.xxx.xx_tests.selenium.new] $ /bin/sh -xe /var/tmp/hudson15949.sh
09:07:45  + echo Start... 
09:07:45  Start...
09:07:45  + java -jar /opt/weblogic/hudson.slave/workspace/xx.xxx.xxx.xx_tests.selenium/selenium-server-standalone-2.26.0.jar
09:07:45  Nov 30, 2012 9:07:45 AM org.openqa.grid.selenium.GridLauncher main
09:07:45  INFO: Launching a standalone server
09:07:45  09:07:45.822 INFO - Java: Sun Microsystems Inc. 10.0-b19
09:07:45  09:07:45.825 INFO - OS: SunOS 5.10 sparc
09:07:45  09:07:45.841 INFO - v2.26.0, with Core v2.26.0. Built from revision 18041
09:07:46  09:07:46.022 INFO - RemoteWebDriver instances should connect to: http://127.0.0.1:4444/wd/hub
09:07:46  09:07:46.024 INFO - Version Jetty/5.1.x
09:07:46  09:07:46.025 INFO - Started HttpContext[/selenium-server/driver,/selenium-server/driver]
09:07:46  09:07:46.026 INFO - Started HttpContext[/selenium-server,/selenium-server]
09:07:46  09:07:46.026 INFO - Started HttpContext[/,/]
09:07:46  09:07:46.281 INFO - Started org.openqa.jetty.jetty.servlet.ServletHandler@1acd47
09:07:46  09:07:46.282 INFO - Started HttpContext[/wd,/wd]
09:07:46  09:07:46.286 INFO - Started SocketListener on 0.0.0.0:4444
09:07:46  09:07:46.286 INFO - Started org.openqa.jetty.jetty.Server@bfc8e0

Thanks,



On Thursday, 29 November 2012 19:09:14 UTC+5:30, Krishnan wrote:
Looks like you are working with the jenkins selenium plugin jar. I dont know what all does it do internally, but can you please just start the selenium server using 

java -jar selenium-server-standalone-2.26.0.jar (after you download it from the selenium downloads page) ?


Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/


On Thu, Nov 29, 2012 at 6:47 PM, dchucks <deba...@gmail.com> wrote:
Hi again,

About passing the firefoxProfileTemplate parameter, I was earlier passing it as follows:

DISPLAY=:99 java -jar /opt/weblogic/hudson.slave/workspace/xx.xxx.xxx.xx_tests.selenium/selenium-server-standalone-2.26.0.jar -singleWindow -htmlSuite "*firefox /usr/lib/firefox/firefox-bin" "http://superuser:superu...@xx.xxx.xxx.xx:xxxx" "/opt/weblogic/hudson.slave/workspace/xx.xxx.xxx.xx_tests.selenium/myapp.smoke.test/src/test/functionalTest/HUDSON_TestSuite.html" "/opt/weblogic/hudson.slave/workspace/xx.xxx.xxx.xx_tests.selenium/myapp.smoke.test/test-reports/results_dc.html" -firefoxProfileTemplate "/opt/weblogic/.mozilla/firefox/2or1q91p.copis-selenium"


Deleting all Firefox profiles (including the Default didn't work) and I get the same error, note that I didn't pass the firefoxProfileTemplate parameter now:(

14:42:13  + java -jar /opt/weblogic/hudson.slave/workspace/xx.xxx.xxx.xx_tests.selenium/selenium-server-standalone-2.26.0.jar -singleWindow -htmlSuite *firefox /usr/lib/firefox/firefox-bin http://superuser:superuser123@xx.xxx.xxx.xx:xxxx /opt/weblogic/hudson.slave/workspace/xx.xxx.xxx.xx_tests.selenium/myapp.smoke.test/src/test/functionalTest/HUDSON_TestSuite.html /opt/weblogic/hudson.slave/workspace/xx.xxx.xxx.xx_tests.selenium/myapp.smoke.test/test-reports/results_dc.html

dchucks

unread,
Dec 2, 2012, 3:03:42 AM12/2/12
to seleniu...@googlegroups.com
Looks like I will have to give up on this :(
Reply all
Reply to author
Forward
0 new messages