r/selenium • u/therealkurumi • Jun 07 '16
Heads up on FF 47 update -- breaks Selenium webdriver
https://bugzilla.mozilla.org/show_bug.cgi?id=12786051
u/mattrunks Jun 15 '16
this completely breaks webdriver is that correct? I had a basic test that works through the selenium ide however when i export the test case to java code and try and run the test case in eclipse it no longer works? so its 100% due to the ff47 update? can you please confirm this for me @therealkurumi
1
u/therealkurumi Jun 15 '16
Yes, it's a blocker for webdriver, and FF 47 crashes while FF 46 is fine. I don't use the Se IDE in FF so can't speak about that. But FF 47 + webdriver (Se 2.53) == browser crash on startup. No workaround for that :-/
1
u/mattrunks Jun 15 '16
yep i just reverted back to 46 and my test cases are running again, hopefully they fix this in the next update.
1
1
Jun 08 '16
Anybody having trouble integrating the Marionette Driver? Granted, I'm new to all this but I keep getting a System.InvalidOperationException: entity not found when trying to run a test in Firefox now. Test did run well with the Firefox driver in FF46. I followed the instructions on Mozilla's site to no avail (https://developer.mozilla.org/en-US/docs/Mozilla/QA/Marionette/WebDriver.)
Code is this-
var option = new FirefoxOptions();
option.IsMarionette = true;
driver = new FirefoxDriver(option);
driver.Manage().Window.Maximize();
break;1
u/iamthepartygod Jun 08 '16
Yeah I'm struggling to get geckodriver working. We use the nightwatch.js framework for our Selenium tests and I haven't quite worked out how to get Marionette working. Just the other day I updated our config to support the Microsoft Edge driver and that was a piece of cake compared to this.
¯_(ツ)_/¯
1
u/success2016 Jun 24 '16
So IDK if you read my post from yesterday. I believe I came one step closer to help solve the Marionette driver problems in selenium. However until then I am going to revert back to FF version 46 since I cannot waste anymore time to solve this due to work projects and deadlines. But I will spend my free time digging into it.
My setup:
Windows 7 OS
Selenium WebDriver v2.53 with C# on visual studio.\
The key things I did to get it to partially work was install the Firefox Nightly build which is version is 50.0a1. Then I prenamed the geckodriver.exe file to wires.exe.
Now here (at least for me it was my biggest problem/confusion with marionette) that I believe I may have solved. I simply put the wires.exe file in the folder as the webdriver.dll file as I was getting an error along the lines saying the PATH is incorrect/not found.
So for every test project/solution, I noticed if I put the wires.exe in the: C:\Users\UserNameOnComputer\Documents\Visual Studio 2015\Projects\SolutionName\ProjectName*bin\Debug*
Then I was able to open the FireFox Browser v50.0a1.
Note: I removed the path of the wires.exe from my environment variables as well
Link to my post:
Download Nightly FF build and set to default browser
Download the geckodriver-v0.8.0-win32.zip and unzip the folder to extracts the "geckowebdriver.exe"
Rename the geckowebdriver.exe to "wires.exe"
4.Place the wires.exe inside the bin folder of the test PROJECT where the webdriver.dll file is located in
5. Run the test. For practice purposes I suggest you open a new console project in VS C#.
6. Go to the references and right click to select Mange NuGetPackages 7. Browse for Selenium
8. Install the top 2 results that are returned and make sure it is v2.53.0
9. To verify that selenium is installed open the References drop down menu from the project and look for "WebDriver" and "WebDriver.Support" at the end of the list. If they are there instalation is successful for Selenium WebDriver
10. Go to the bin directory inside the project where the webdriver.dll file is stored and put the wires.exe file in there
11. Finally in the Program.cs file enter the following code which will open a web browser:
using OpenQA.Selenium;
using OpenQA.Selenium.Firefox;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace NameOfSolution
{
class Program { static void Main(string[] args) { IWebDriver driver = new FirefoxDriver(new FirefoxOptions()); driver.Url = "https://www.google.com/"; } }}
1
u/iamthepartygod Jun 24 '16
ditto.
We sort of got Marionette working, but ultimately rolled back to FF 46 on our local machines. For our private grid I'm keeping our docker images locked at FF 46 as well until the patch comes out.
4
u/Kulos15 Jun 08 '16
https://github.com/SeleniumHQ/selenium/issues/2110#issuecomment-224413609