Search code examples
selenium-webdriverrobotframeworkgeckodriverrobotframework-browser

specific custom path of firefox for executing the automation


I am using "SeleniumLibrary" in robot framework . I installed two version of firefox in my machine . I would like to use the specific custom path of firefox for executing the automation .Please help me out to sort out this issue as earlier as possible


Solution

  • You can use Create webdriver keyword with options like that:

    Create webdriver   Firefox     firefox_binary=C:\\Program Files\\Mozilla Firefox2\\firefox.exe    executable_path=C:\\opt\\webdrivers2\\geckodriver.exe
    

    Tested on:

    • robotframework-seleniumlibrary==6.0.0
    • selenium==4.1.5