robotframework / OldSeleniumLibrary

Deprecated Selenium library for Robot Framework
Apache License 2.0
13 stars 3 forks source link

Launching Firefox doesn't work with FF 3.6.13, SeLib 2.5 #165

Closed spooning closed 9 years ago

spooning commented 9 years ago

Originally submitted to Google Code by spielman... on 20 Jan 2011

I'm trying to run robot tests using Selenium on my local machine. I use Firefox 3.6.13 and Selenium Library 2.5. As soon as the Selenium server says "Launching Firefox...", it does start Firefox with two tabs, but that's all. The first tab is empty, the second tab points to

chrome://src/content/RemoteRunner.html?sessionId=2ebd0bb91949489faf15d66ffa316640&multiWindow=true&baseUrl=http%3A%2F%2Fsomehost%2Fxy%2Fz%2F&debugMode=true&driverUrl=http://localhost:4455/selenium-server/driver/

but nothing happens. Firefox sits there, on a seemingly half-initialized Selenium session, and doesn't do anything else. I've waited for quite some time if anything would happen, but it didn't.

Can anyone confirm this?

spooning commented 9 years ago

Originally submitted to Google Code by spielman... on 20 Jan 2011

This happens on Windows 7 Professional, 64 bit. Just in case this matters ;)

spooning commented 9 years ago

Originally submitted to Google Code by @pekkaklarck on 20 Jan 2011

I have exactly same Firefox and SeLib versions in WinXP and they work fine.

Does this happen for you with all tests? Have you, for example, tried running the SeleniumLibrary demo?

spooning commented 9 years ago

Originally submitted to Google Code by spielman... on 24 Jan 2011

Funny situation. When I tried, I was able to run the demo just fine, even though I already had an instance of Firefox running. However, I just read about Selenium Grid, and in the documentation I found this little paragraph:

"Note: I recommend quitting all running instances of the Firefox browser before running the demo. Sometimes Selenium has trouble launching Firefox when an instance is already running."

Thus, I will do another test tomorrow with no instances of Firefox running when I start the test, and then see if it works.

spooning commented 9 years ago

Originally submitted to Google Code by @pekkaklarck on 27 Jan 2011

Any more news about this?

spooning commented 9 years ago

Originally submitted to Google Code by spielman... on 1 Feb 2011

It worked with the demo tests, but it never worked with my project-related tests. With SeLib 2.6, it works fine under all circumstances, so I suppose that there is no value in going after the cause.

spooning commented 9 years ago

Originally submitted to Google Code by @pekkaklarck on 1 Feb 2011

If 2.6 fixed your problem then it was probably caused by CustomFirefoxProfile introduced in 2.5. We noticed Firefox was launched twice when using it ( issue 171 ) and that was fixed. It could be that your problem was another way for this problem to appear or we may have fixed your problem by accident.

If you still want to investigate this, you can start Selenium Server with option -firefoxProfileTemplate DEFAULT when using 2.5. If Firefox works then, this issue should be resolved as a duplicate for 171. Now I just close this.

spooning commented 9 years ago

Originally submitted to Google Code by jollych... on 2 Mar 2011

when I user the selenium Library (382:491d0094aa97)'s firefoxprofile,the RC server can't open the firefox 3.6.13

/usr/bin/java -jar /Library/Python/2.6/site-packages/SeleniumLibrary/lib/selenium-server.jar -port 4444 -firefoxProfileTemplate DEFAULT -userExtensions /Library/Python/2.6/site-packages/SeleniumLibrary/lib/user-extensions.js -firefoxProfileTemplate /Library/Python/2.6/site-packages/SeleniumLibrary/firefoxprofile

after set the -firefoxProfileTemplate DEFAULT,it's works fine. Maybe this issue should reopen

spooning commented 9 years ago

Originally submitted to Google Code by @pekkaklarck on 2 Mar 2011

I don't know what version 382:491d0094aa97. Have you tried with the latest version?