File pathToBinary = new File("C:\\user\\Programme\\FirefoxPortable\\App\\Firefox\\firefox.exe");
FirefoxBinary ffBinary = new FirefoxBinary(pathToBinary);
FirefoxProfile firefoxProfile = new FirefoxProfile();
WebDriver driver = new FirefoxDriver(ffBinary,firefoxProfile);
More Related Contents:
- Selenium webdriver: Modifying navigator.webdriver flag to prevent selenium detection
- How to resolve ElementNotInteractableException: Element is not visible in Selenium webdriver?
- How many ways to click on webElement In WebDriver?
- Selenium WebDriver throws Exception in thread “main” org.openqa.selenium.ElementNotInteractableException
- How to switch to the new browser window, which opens after click on the button?
- How to perform mouseover function in Selenium WebDriver using Java?
- Do we have any generic function to check if page has completely loaded in Selenium
- Exception in thread “main” java.lang.NoClassDefFoundError: org/openqa/selenium/WebDriver
- How to handle windows file upload using Selenium WebDriver?
- Alert handling in Selenium WebDriver (selenium 2) with Java
- Unable to import org.openqa.selenium.WebDriver using Selenium and Java 11
- Selenium IE WebDriver only works while debugging
- pageLoadTimeout in Selenium not working
- How to automate drag & drop functionality using Selenium WebDriver Java
- How to auto-download through Firefox browser using FirefoxProfile?
- ChromeDriver and WebDriver for Selenium through TestNG results in 4 errors
- How to select an item from a dropdown list using Selenium WebDriver with java?
- How to perform Mouse Wheel scrolling over HTML5 Canvas in Selenium?
- What is the best way to avoid NoSuchElementException in Selenium?
- How to click on hidden element in Selenium WebDriver?
- How to automate Google Home Page auto suggestion?
- Take full page screenshot in Chrome with Selenium
- Does Selenium v3.141 support Java 13?
- How to find the coordinates of the buttons on a canvas, and click on them after using Java and Selenium?
- How to resolve, Stale element exception? if element is no longer attached to the DOM?
- How to download a pdf file in chrome using selenium webdriver
- Error executing testng.xml through CLI : Could not find or load main class org.testng.TestNG
- How to select the Date Picker In Selenium WebDriver
- Is there a way to search webelement on a main window first, if not found, then start searching inside iframes?
- Set Chrome’s language using Selenium ChromeDriver