Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firefox 47.0 to crash on startup selenium webdriver

Yesterday we updated Firefox 47.0 and selenium test script started getting crash,

Please see attached screenshot. Firefox getting crash as mentioned in Firefox release notes they suggested to use Marionette WebDriver . We have downloaded Marionette WebDriver for windows and as mentioned in link we made code changes by adding Marionette WebDriver in bin/debug folder.Below are code changes for same

var driver = new FirefoxDriver(new FirefoxOptions());

However we are facing issue "entity not found"

Note : We are using c# selenium WebDriver on Windows7 64 bit OS and We tired below solution such as

  • Renamed Marionette WebDriver to wires.exe
  • Add Marionette WebDriver exe path in Environment variable.
  • Use RemoteWebDriver as shown below

        DesiredCapabilities capabilities = DesiredCapabilities.Firefox();
    
        // Set Marionette on so the Grid will use this instead of normal FirefoxDriver
    
        capabilities.SetCapability("marionette", true);
    
    
        var driver = new RemoteWebDriver(capabilities); 
    

Please somebody help in this issue.

like image 679
Prakash Avatar asked Nov 20 '22 03:11

Prakash


1 Answers

Have the same issue, the problem is unclear for now, but this kind of situation was before, you just need to wait new selenium update or Firefox fix (depends who introduced this problem), for now you could revert to previous version of FireFox.

https://support.mozilla.org/en-US/kb/install-older-version-of-firefox

UPD: Now if you using Firefox 47 you need to use new FirefoxDriver(geckodriver), Details could be found here: https://developer.mozilla.org/en-US/docs/Mozilla/QA/Marionette/WebDriver

like image 178
user2492994 Avatar answered Dec 26 '22 01:12

user2492994