Interface Browsers

  • All Known Implementing Classes:
    WebDriverRunner

    public interface Browsers
    Constants for all browsers supported by Selenide out of the box
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String CHROME  
      static java.lang.String EDGE  
      static java.lang.String FIREFOX  
      static java.lang.String HTMLUNIT
      To use the HtmlUnitDriver, you need to add the following dependency to your project:
      static java.lang.String IE  
      static java.lang.String INTERNET_EXPLORER  
      static java.lang.String JBROWSER
      To use JbrowserDriver, you need to include extra dependency to your project: <dependency org="com.machinepublishers" name="jbrowserdriver" rev="[0.13.0, 2.0)" conf="test-&gt;default"/&gt;
      static java.lang.String LEGACY_FIREFOX  
      static java.lang.String OPERA
      To use OperaDriver, you need to include extra dependency to your project: <dependency org="com.opera" name="operadriver" rev="1.5" conf="test->default"/>
      static java.lang.String PHANTOMJS
      To use PhantomJS, you need to set system property: -Dselenide.browser=phantomjs
      static java.lang.String SAFARI
      To use Safari webdriver, you need to include extra dependency to your project: <dependency org="org.seleniumhq.selenium" name="selenium-safari-driver" rev="2.+" conf="test->default"/>
    • Field Detail

      • SAFARI

        static final java.lang.String SAFARI
        To use Safari webdriver, you need to include extra dependency to your project: <dependency org="org.seleniumhq.selenium" name="selenium-safari-driver" rev="2.+" conf="test->default"/>
        See Also:
        Constant Field Values
      • HTMLUNIT

        static final java.lang.String HTMLUNIT
        To use the HtmlUnitDriver, you need to add the following dependency to your project:

        <dependency org="org.seleniumhq.selenium" name="selenium-htmlunit-driver" rev="2.+" conf= "test->default"/>

        It is also possible to run HtmlUnitDriver so that it emulates different browsers

        java -Dbrowser=htmlunit:firefox

        java -Dbrowser=htmlunit:chrome

        java -Dbrowser=htmlunit:internet explorer (default)

        etc

        See Also:
        Constant Field Values
      • PHANTOMJS

        static final java.lang.String PHANTOMJS
        To use PhantomJS, you need to set system property: -Dselenide.browser=phantomjs
        See Also:
        Constant Field Values
      • OPERA

        static final java.lang.String OPERA
        To use OperaDriver, you need to include extra dependency to your project: <dependency org="com.opera" name="operadriver" rev="1.5" conf="test->default"/>
        See Also:
        Constant Field Values
      • JBROWSER

        static final java.lang.String JBROWSER
        To use JbrowserDriver, you need to include extra dependency to your project: <dependency org="com.machinepublishers" name="jbrowserdriver" rev="[0.13.0, 2.0)" conf="test-&gt;default"/&gt;
        See Also:
        Constant Field Values