Which Firefox version is compatible with Selenium 2.53.0? - selenium

Which Firefox version is compatible with Selenium 2.53.0? I tried Firefox 45.0 and I am getting this exception:
org.openqa.selenium.WebDriverException: Failed to connect to binary
FirefoxBinary(/Applications/Firefox.app/Contents/MacOS/firefox-bin) on port 7055; process output follows:
foreignInstall":false,"hasBinaryComponents":false,"strictCompatibility":false,"l ocales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"45.0","maxVersion":"45.*"},{"id":"xpcshell#tests.mozilla.org","minVersion":"0","maxVersion":"10"}],"targetPlatforms":[],"multiprocessCompatible":false,"seen":true}

I had the similar problem running Selenium Webdriver 2.53.0 with Firefox 47.0.
Selenium Webdriver 2.53.0 works with Firefox 46.0. You can find the the mentioned version at https://support.mozilla.org/en-US/kb/install-older-version-of-firefox.

Also you could try to add:
System.setProperty("webdriver.firefox.bin","C:\\Users\\AppData\\Local\\Mozilla Firefox\\firefox.exe");
WebDriver driver=new FirefoxDriver();
if it is also not working, then you need to downgrade your FF

hi I had the same problem, I hope you have solved yours, but maybe my answer can help someone else.
i found firefox 26, selenium 2.48.2 and a webdriver that work very good together. here are the download links:
phpSeleniumWebDrive
selenium-server-standalone-2.48.2
firefox26

Related

Selenium, opening ff browser and automaticly close

Trying to run testng suite compiled jar on remote linux machine.
Problem I have is, if I run tests, FF open url I have defined and after that closing brower, and so on.
org.openqa.selenium.NoSuchElementException: Unable to locate element: {"method":"name","selector":"username"}
Selenium 2.53.0
FF 45.0
Any idea why my test just open browser and close?
NoSuchElementException is thrown when element does not exist. It may not be the reason for fx crash.
The possibilities are :
Some where in the code you will be closing the driver.
I had faced the same issue earlier.
Try to upgrade your firefox to the latest version.
Try to set the firefox driver using setProperties
System.setProperty("webdriver.firefox.bin","C:\\Users\\AppData\\Local\\Mozilla Firefox\\firefox.exe");
WebDriver driver=new FirefoxDriver();
Follow the link to upgrade or downgrade fx: https://support.mozilla.org/t5/Install-and-Update/Install-an-older-version-of-Firefox/ta-p/1564
Below are some of the helpful links.
Firefox crashes when started by Selenium firefox driver
Which Firefox version is compatible with Selenium 2.53.0?
I was using wrong url without "/" on the end, after I changed all working now.

driver.switchTo().alert().sendKeys("Hello") not working for latest chrome driver- Selenium Webdriver -java

driver.switchTo().alert().sendKeys("Hello")
The above code for prompt is not working for latest chrome driver with selenium webdriver -java. It didn't throw any error. Except sendkeys all other actions accept(),dismiss() , getText() is working well. I have used ChromeDriver 2.29, selenium-3.3.1, Chrome Browser - Version 56.0.2924.87.
google chrome
Version 59.0.3071.109
chrome driver 2.30
selenium 3.4
i have this version for chrome.
driver.switchTo().alert().sendKeys("Helllo")
is working properly.
This is purely a display issue and the input of sendKeys(...) will be sent after you accept the Alert.
See also the answer in this Chromium issue:
https://bugs.chromium.org/p/chromedriver/issues/detail?id=1120#c11

Selenium 2.53 not working on Firefox 49.0.2

Selenium : 2.53
Firefox : 49.0.2
Windows10 : 32bit
When I execute the selenium webdriver from eclipse get the following error "about:blank&utm_content=firstrun" in firefox
I also faced the same issue. After searching net, I found some of the links where they suggest to downgrade the firefox version. I am using 43.0.1 but you may try 46.0 also.
Selenium WebDriver no longer supports the default Firefox Driver. They are currently working on a new driver, called Marionette, for their new Gecko engine.
More details on Marionette you can find here: Marionette
If you want to use the default driver, you should downgrade your Firefox. Version 45.0.1 works fine for me.

What Selenium and Firefox version is best to use?

Which Selenium and Firefox versions shall I use to start learning Selenium. None of my code from Packt Publishing book "Selenium... a practical guide" is working.
The book says they Selenium Java 2.33.0 and Firefox 17.
Has anyone had any success running the book's code on any latest version of Selenium and Firefox? Please suggest.
Thanks in Advance.
Use selenium 2.53 and firefox 46. Firefox >= 47 use marionette driver, but is in development and some things dont work, like Actions.

Selenium 2.53 or 2.48 not working in Firefox 48.0

I am getting an error in Firefox 48.0 in new the update from firefox 47
Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms.
Firefox console output: 066 addons.xpi DEBUG Updating database with
changes to installed add-ons
My system and browser configuration are:
Firefox 48
Selenium 2.48 also try 2.53
Window 8 64bit
I also tried the marionette driver but did not receive proper output with that.
Any ideas on how to fix this besides downgrading firefox?
Older versions of Selenium (like 2.5.x) do not work and won't work with Firefox 48+.
The reason is that Firefox 48 changed a lot of stuff, including the fact that extensions must be signed by Mozilla to work with Firefox.
To fix the Selenium issue, Mozilla took ownership of FirefoxDriver() and they a released a Marionette version for this, including a Gecko driver.
This is what you need to use to be able to execute your tests on Firefox 48+.
I would recommend downloading firefox 46 which seems to be the best match for selenium 2.53.x.
https://ftp.mozilla.org/pub/firefox/releases/46.0.1/win64/en-US/
Once I downgraded to firefox 46.0.1 everything was working as expected.
I found another solution for my question with Firefox 48 and Selenium 3.0.0(Beta 3) because Selenium 2.48 didn't work.
If you want run selenium script then you have to download....
Selenium 3.0.0(Beta 3) - http://www.seleniumhq.org/download/
GeckoDriver exe - http://www.seleniumhq.org/download/
put below code in your script
public class FirefoxTest{
public static void main(String args[]) throws InterruptedException{
System.setProperty("webdriver.gecko.driver", "Path + geckodriver.exe");
//For E.g ("webdriver.gecko.driver", "C://geckodriver.exe")
DesiredCapabilities capabilities = DesiredCapabilities.firefox();
capabilities.setCapability("marionette",true);
WebDriver driver = new FirefoxDriver(capabilities);
String baseUrl = "https://www.google.com";
driver.get(baseUrl);
}
}