RE: I am trying to execute the simple WebDriver code but it open and immediately closes the browser. Version details: Firefox 43.0, selenium 2.50
As far as we know, I think you will have to downgrade or upgrade either firefox or selenium. Compatibility is the core for starting your selenium tests. You can refer the changelog for best information.