seleniumcompatibilitychromiumweb-testing

Use Selenium with Chromium Browser


In the Selenium options (on Firefox) I can find Custom browser.

Is it possible to use this option to run a Selenium test in Chromium Browser (not Chrome)?


Solution

  • Yes. For Chromium, use:

    DefaultSelenium selenium = new DefaultSelenium("localhost", 4444, "*custom path/to/chromium", "www.google.com");
    selenium.start();
    

    The other options that you can use are *custom, *chrome (note: this is not Google Chrome; it’s a Firefox mode only), *googlechrome, *iexplore. Please check the Selenium documentation for complete list of the modes.