- SOLVED - EDIT * - Sorry, I could not answer this question, but apparently my account is too new to do so for now.
Solved! It's amazing how such things tend to solve themselves AFTER you asked a question ...
For those who want to know why, I had to do something ...
1) Make sure that the corresponding user has a working home directory (www-data was not the default ... his home directory was owned by root)
2) Start Xvfb from the command line, and then start firefox from the command line (NOT from the script) - this will fill the users home folder with the usual folders .dbus, .gconf, etc.
3) If you get a massive delay, and then an error message in the line "an error occurred while loading or saving configuration information for firefox-bin", delete the .dbus folder in the users home directory
4) Try again # 2 - if you had a configuration error earlier, it should disappear.
5) Try running the script again.
This worked like a charm for me, so if you are having problems with Xvfb and watir-webdriver from a web application, give it a try.
Thanks to everyone for contributing to being the best BEST Q&A site on the Internet ... this place saved my ass more than once I would like to mention.
Note: the user initially introduced this change in his question because they could not figure out how to send it as an answer. This was later edited out of the question by some good person, but was never added as an answer.
source share