How to define a firefox binary path with robot framework? How to define a firefox binary path with robot framework? selenium selenium

How to define a firefox binary path with robot framework?


I share with you one solution :

If you want to test Firefox Extended Support Release or portable Firefox, you just have to set the marionette to false

${firefox_path}= | Evaluate | sys.modules['selenium.webdriver'].firefox.firefox_binary.FirefoxBinary(firefox_path='C:\\Users\\xxx\\FirefoxPortable37\\FirefoxPortable.exe', log_file=None) | sys${caps}= | Evaluate | sys.modules['selenium.webdriver'].common.desired_capabilities.DesiredCapabilities.FIREFOX | sysSet To Dictionary | ${caps} | marionette=${False}Create WebDriver | Firefox | firefox_binary=${firefox_path} | capabilities=${caps}Go To | http://free.fr