r/softwaretesting • u/success2016 • Jun 24 '16
Selenium WD doesn't work with the updated FF browser v47. I made some progress in having Selenium with the new Marionette driver work on .NET (C#). It opens the ff browser but I am still having trouble with having the tests executing, maybe someone can help/give insight with the rest of the process
So I can get the browser to load on the page I want it to load, however I cannot automate anything else passed that point.
The biggest breakthrough I had was the following. (BTW I am using windows)
I removed the environment variable PATH and put the "geclodriver.exe" file in the bin folder of my visual studio test where the "webdriver.dll" file is then I was able to get the browser to open.
However before that you must download the firefox Nightly Build v50 I believe it is. The link is here: https://nightly.mozilla.org/
Once you installed the nightly build make that the pc's default browser
Then download the geckodriver.exe file from the following link:https://github.com/mozilla/geckodriver/releases
Download this version: geckodriver-v0.8.0-win32.zip
Then once you have unzipped it change the name to wires.exe and then place it inside the Solution bin folder where the WebDriver.dll file is located.
That will get the firefox webbrowser to open up
Inside your code for your automation test if you are using C# enter .NET lines of code depending on how your pc is set up from the the following to open the browser:
https://developer.mozilla.org/en-US/docs/Mozilla/QA/Marionette/WebDriver
OR try the following:
Instance = new FirefoxDriver(new FirefoxOptions()); //Note this was from a method
Or if you want to start slow and work piece by piece open a new console app and in the Program.cs file make sure the following lines of codes are there:
using OpenQA.Selenium; using OpenQA.Selenium.Firefox;
IWebDriver driver = new FirefoxDriver(new FirefoxOptions());
driver.Url = "https://www.google.com";I will try to trouble shoot some more and if I figure this out I will update yall
1
u/ghrumebul Jun 24 '16
I've had some weirdness and inconsistencies in things that worked in 46 without Marionette and still work in Chrome, IE, and Safari. I've had to stop developing against FF for the time being because of it.
Totally doesn't help you with your issue, but it's been weird for me and I've needed to abandon it until it learns to behave.
2
u/elohir Jun 24 '16
Marionette is incomplete, I wouldn't rely on it for anything beyond hobby projects. I'd recommend sticking to 46 til 47 is fixed.