Firefox 49.0 + Selenium 2.9.1 - selenium

I'm trying to do testing with Selenium 2 and phpunit. I'm using selenium-server-standalone-2.53.1.jar and launch the test firefox opens blank and does nothing.
phpunit gives this message:
PHPUnit_Extensions_Selenium2TestCase_WebDriverException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output
Can anyone tell me what happens? Thmks.

Use geckodriver.
You need geckodriver for running tests in latest Firefox browsers. Firefox doesn't support Firefox driver anymore.
Download geckodriver and place it in PATH
Use Selenium 3.0 for running tests
Or use Firefox 47.* or 45 ESR with the old driver.
Background
Firefox release 48.0 states the following:
Add-ons that have not been verified and signed by Mozilla will not load
Firefox driver fell under this category, and it had no chances of passing verification without being re-written. Geckodriver, though, is built in the same way as Chromedriver and IEdriver are, and kinda works.
Some more info is available here

Related

In Selenium how does ChromeDriver executable finds Chrome browser?

For Selenium, we define the chrome executable path in System.setProperty. When a URL is passed in driver.get and Chrome invokes:
1 - How does chrome executable know where Chrome browser is actually installed?
2 - What would happen if I do not have Chrome browser?
Responses appreciated!!
As per the Requirements of ChromeDriver:
The ChromeDriver consists of three separate pieces. There is the browser itself i.e. chrome, the language bindings provided by the Selenium project i.e. the driver and an executable downloaded from the Chromium project which acts as a bridge between chrome and the driver. This executable is called the chromedriver, we generally refer to it as the server to reduce confusion.
The server expects you to have Chrome installed in the default location for each system as per the image below:
1For Linux systems, the ChromeDriver expects /usr/bin/google-chrome to be a symlink to the actual Chrome binary. In case you are using a Chrome executable in a non-standard location you have to override the Chrome binary location. as follows:
Google chrome doesn't have built-in driver server, so you need to install ChromeDriver so that the selenium code communicates with the chrome browser.This ChromeDriver implements webdriver's wire protocol (client being system on which webdriver API is used & server being browser acting as/containing stand alone server).
For Internet explorer one needs to install InternetExplorerDriver as stand alone server. For Selenium 3.0 & above to work with firefox, Geckodrver has to be installed.

JMeter WebDriver Sampler doesn't work with latest Firefox version

I use JMeter WebDriver Sampler (JMeter v4.0) for Chrome Driver (where I specify the path to chromedriver in jp#gc - Chrome Driver Config), and it works.
Now I want to try with latest Firefox Browser (FF Quantum v59.0), but it doesn't work. FF browser is opened but it doesn't go further, ex WDS.browser.get('http://jmeter-plugins.org') is not executed.
It seems JMeter WebDriver Sampler doesn't catch up with geckodriver and changes of FF. I google it, but I don't find any info on this regard. Does anyone know any update on this? Is there any workaround? Thanks
You should look at JMeter Firefox Driver Config plugin restrictions:
the latest Firefox version may not work with the latest WebDriver set. The table below describes the version of Firefox that is compatible with JMeterPlugins:
Current version is compatible only with version 26 of Firefox
Also firefox jmeter addon is not compatible
This add-on is not compatible with your version of Firefox.
Not compatible with Firefox Quantum
The jmeter firefox driver config is only compatible with firefox 26, 33 and the latest is 45 and 46.
You cannot use the version of firefox which is greater than 46.0
Did you add the geckodriver file path in environment variable "Path". If not try that. I am using latest firefox with Jmeter Webdriver and is working for me.
Computer Properties - Advance System Settings - Environment Variables - Path (Add File Path without File name)

Unable to connect to host 127.0.0.1 on port 7055.Selenium 3 & Firefox 38.6.0

I am getting the below error message while opening firefox browser with Selenium 3.I tried downgrading to Selenium 2.46 but still I get the same error. Browser is opened by the script, but its going to catch block after some time.
Firefox version : 38.6.0
Selenium 2.46 (Also tried with 3 as well)
Mozilla exe path : "C:\Program Files\Mozilla Firefox\firefox.exe"
Error message :
Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms.
Firefoxconsole output:on move on file
C:\Users\D828737\AppData\Local\Temp\anonymous2231645626157870160webdriver-
profile\sessionstore-backups\recovery.js (Access is denied.)
If you need This Firefox version specifically, I'd try bumping the Selenium version until it works, e.g. 2.47.0, 2.47.1 till 2.53.0. See releases here. If you look at the Firefox release date and the Selenium release date, you'll see you need something that was released around August 2015 ~ Selenium 2.47.1.
If the version doesn't matter, update your Firefox to the latest version, and use latest Selenium (3.0.1 for the time being), and additionally you'll need to download GeckoDriver and specify the path to it, like you do for ChromeDriver.

Firefox Selenium (Java)does not work

I am using selenium java 2.42 and mozilla fire fox-32.0.2 version,When I run the script on eclipse to launch the google it gives me error
org.openqa.selenium.firefox.NotConnectedException:
Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms.
Firefox console output: 6.
I tried downgrading the firefox version too, but the error persists.
FF v32 is only compatible with Selenium 2.43.0+
FF versions and Selenium versions are tightly coupled.
This said, the error you are getting is not what I would expect. Is the server at 127.0.0.1:7055 up?
Update your selenium with latest version 2.43.0+.
Because Firefox driver version is not compatible with older version of selenium.

Not able to open firefox from selenium webdriver

I am getting the below error when i am running the selenium script.
org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
fTime":1409733904986}}},{"name":"winreg-app-user","addons":{"{e4f94d1e-2f53-401e-8885-681602c0ddd8}":{"descriptor":"C:\\ProgramData\\McAfee Security Scan\\Extensions\\{e4f94d1e-2f53-401e-8885-681602c0ddd8}.xpi","mtime":1396607774000}}},{"name":"app-profile","addons":{"fxdriver#googlecode.com":{"descriptor":"C:\\Users\\kishna\\AppData\\Local\\Temp\\anonymous3395727590319882631webdriver-profile\\extensions\\fxdriver#googlecode.com","mtime":1409812670363,"rdfTime":1409812670181}}}]
1409812670931 addons.xpi-utils DEBUG Opening XPI database C:\Users\kishna\AppData\Local\Temp\anonymous3395727590319882631webdriver-profile\extensions.json
1409812670931 addons.xpi DEBUG New add-on fxdriver#googlecode.com installed in app-profile
You are using selenium version that doesn't support Firefox version 32.
And since currently there is no selenium java package version that claiming support for Firefox 32, you need to downgrade your browser. In your case, downgrade it to Firefox 28, which is listed as supported by selenium 2.42.2.
See also similar problem here:
selenium and web2py from killer-web-development.com doesn't work
Also see:
Where can I find a definitive Selenium WebDriver to Firefox Compatibility Matrix?
Documentation confusion: what version of Firefox does Selenium support?
Is Selenium 2.42.2 webdriver compatible with Firefox 27.0.1?
Please upgrade to 2.43.1 [http://www.seleniumhq.org/download/]. The new version works for FF32.
You can follow link below in the future for check supported versions FF vs. WebDriver.
I use it if I want to update browser or webdriver library.
LINK: http://selenium.googlecode.com/git/java/CHANGELOG