I am working on Automation tool Behat/Mink . After upgrading Firefox version to 25 , i am seeing this error .
Curl error thrown for http POST to http://localhost:4444/wd/hub/session/execute with params: {"script":"return document.getElementById('user') !== null;","args":[]}
Failed to connect to 127.0.0.1: Can't assign requested address
I am using selenium webdriver version 2.37.0.jar as the server.
Support for Firefox 25 has been added in version 2.38. Current version is 2.39 which supports Firefox 26.
It is a good practice to check for the new selenium version every time Firefox upgrades. Updating the server should work.
Official download page.
run this command before running your tests
java -jar selenium-server-standalone-*
this will help you to resolve your problem
make sure your selenium latest version should be on same folder
Related
My Selenium program written with Ruby randomly stopped working (it ran perfectly yesterday) and gave me this error:
Backtrace:: session not created: This version of ChromeDriver only supports Chrome version 89 (Selenium::WebDriver::Error::SessionNotCreatedError)Current browser version is 91.0.4472.77 with binary path C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe
I've since tried:
Un & re-installing ChromeDriver (newest version, as I was using before)
Replacing my current version with version 89 along with changing the path (this resulted in the same error)
Following these similar issues 1 & 2
I'm not sure where to go from here
I had a similar problem recently with the C# version.
I would double check where Selenium is being ran from.
In my case it was debug/netcoreapp3.1\chromedriver.exe, so it was running an outdated version compared to the version of Chrome installed.
Make sure you have the correct ChromeDriver version from here
If this fails, check the Ruby bindings wiki here
I had the same problem, but in C#. I had to update Nugget for ChromeDriver to match versions. So I basically updated my ChromeDriver to 91.0.4472 and it's resolved the issue.
I'm trying to execute a ruby script on my Windows 10.
Setup Details:
Browser :- latest version of Firefox, <br>
ruby -v 2.2.6<br>
gem -v 2.4.5.2 <br>
selenium webdriver -v 3.3.0
Now i got an error that it cant find geckodriver. I also downloaded geckodriver and added it to the Path.
This is the error message that I get:
Selenium::WebDriver::Error::WebDriverError: Unable to find Mozilla
geckodriver. Please download the server from
https://github.com/mozilla/geckodriver/releases and place it somewhere
on your PATH. More info at
https://developer.mozilla.org/en-US/docs/Mozilla/QA/Marionette/WebDriver.
How can i solve this problem?
It is clear from the error message which is Unable to find Mozilla geckodriver and place it somewhere on your PATH
Here is what you need to do:
Download the latest stable gecko driver & place it in a folder in "C:\abc".
Rename the gecko driver to geckodriver.exe
Download and install the latest released Mozila Firefox.
Ensure you are using either 32 bit or 64 bit for both.
Keep your code like:
System.setProperty("webdriver.gecko.driver", "C:\\abc\\geckodriver.exe");
WebDriver driver = new FirefoxDriver();
driver.manage().window().maximize();
driver.get("http://gmail.com");
Let me know if it works for you.
I've downloaded MongoDB Community Edition for Windows from mongodb.org (Windows 64-bit 2008 R2+), and website says that this version has SSL support (there are alerts on other versions that say they haven't). I'm running Windows 10. From what I've understood, SSL is build in by default from version 3.0, and I'm running with an Ubuntu server a mongod Community Edition instance (64bit, 3.0.10) installed from repository that use SSL.
When I try to run mongo.exe on local Windows machine with --ssl parameter it says:
Error parsing command line: unrecognised option '--ssl'
and others tools say that it doesn't support ssl.
I'm sure that on a previous setup I was running a 3.0.x mongo instance with SSL support on windows, I've tried also to install older versions, but nothing works.
My questions: are 3.0 and 3.2 community edition branches (still) compiled with SSL support on Windows, and if yes, why they doesn't work on my current setup? I'm sure they worked on previous one, may be a configuration problem?
Not sure why the Downloads page links to the Non SSL bundle. The Official Help page indicates the installer file name is mongodb-win32-x86_64-2008plus-ssl-3.2.4-signed.msi which is not the same as the one downloaded via Downloads page (mongodb-win32-x86_64-3.2.4-signed.msi). Get the SSL enabled installer from https://www.mongodb.org/dl/win32/x86_64-2008plus-ssl
I am using Firefox 27 (previously 26) on Ubuntu 12.04 LTS with a Tomcat application with the Selenium stand alone server 2.39 (latest form Maven) including in the application. Everything works fine with Chrome but i would prefer to use Firefox, which cannot work. The Firefox is installed from the standard distributions using xvfb. Again, all the setup is fine as Chrome works, but when i try to use firefox with the following code:
WebDriver webDriver = new FirefoxDriver();
webDriver.get("www.google.com");
When i take a screen shot of the xvfb, i see a window with the following error:
"Your firefox profile cannot be loaded. It may be missing or inaccessible".
The webDriver.get("www.google.com") just hangs and does not ever return.
The same code works fine on my development machine, Mac OSX.
I've tried to downgrade firefox and to no avail, same issue. Anyone have any suggestions?
This seems like an OS problem (read/write permissions or so), rather than a Selenium problem. It seems someone managed to fix it by changing the owner of the Firefox cache folder.
Try executing these commands:
sudo -s
chown -hR $USER:$USER ~/.cache/mozilla
Please take a look at this and let us know if it worked Ubuntu - Firefox profile cannot be loaded after upgrade
I found out the issue. When running in Ubuntu under Tomcat, the Tomcat instance is run with a root user (tomcat7) when installed from the standard distros. The issue was, which was pointed to me by Mourasman's response, was Firefox wants to create a .cache/mozilla directory. This is not possible with a root user. In order to fix this on the Ubuntu machine, I had to run Tomcat as a "real" user on the system with a home directory that allowed Firefox to create the cache directories it wants (even though Selenium gives it its own profile).
I had trouble doing this using the Ubuntu tomcat distro (I know there is a user and group field in /etc/default/tomcat7) but i could never get it to work. When i changed the user, which i'm assuming has to do with permissions, it never did work.
So i ended up downloading the source from Tomcat and starting Tomcat manually.....
Hope this helps anyone else who is trying to use Firefox in Selenium in a Tomcat application.
Thanks Mourasman for the pointer on the .cache directory....
I have a project where we have some Selenium tests. I have recently upgraded Firefox to 7.0.1 because it prompted me to and now the "WebDriver for Firefox" extension that these tests use is broken.
How can I fix this? Must I uninstall this current version of Firefox and install an older one? Or is there a file I can edit to tell it to ignore that the version is different?
An upgrade to Selenium webdriver to 2.8 would probably solve it.
http://web.archive.org/web/20120115040501/http://selenium.googlecode.com/svn/tags/selenium-2.8.0/rb/CHANGES
Unfortunately this has been the case for every Firefox upgrade since 5.0
I would try with the latest selenium-webdriver. I run Firefox 7.0.1 as well and it works with selenium-webdriver 2.8.0.
You can tell Firefox to ignore plugin and extension versions.
Type about:config in the browser address bar
Right-click and create a new boolean value called extensions.checkCompatibility.7.0
Set this value to false
That should prevent the plugin raising an issue with its version compatibility to 7.0.1
i am working with FF-8. Just change the firefox version from standalone.jar. For this unzip your jar file with unzipper and search for install.rdf files in the unzipped files. Open them in word pad and change version. you can add the latest version of browser. There are five or six files that to be changed. after doing that again zip them change to extension .jar