FAQ

FAQ

Frequently Asked Questions

Motivation

Why Selenium webdriver is not enough?

Why yet another Selenium wrapper?

See answer here

Page Objects

Can I use Page Objects with Selenide?

Yes! You can use Page Objects with Selenide.

Moreover, your page objects get concise and readable with Selenide. See more details here.

Settings

Where can I find list of all Selenide settings?

A detailed description of all Selenide settings and default values can be found in javadoc.

How can I change Selenide settings?

Selenide has very reasonable default settings. They should be convenient for most “normal” projects.

If you still want to run tests with another settings, you can do it either using System property:

-Dselenide.timeout=6000

or programmatically, right from your tests:

public void setUp() {
  Configuration.timeout = 6000;
}

Browsers

Can I run Selenide tests with Internet Explorer? Headless browser?

Yes. Selenide can run tests with any browsers that has webdriver binding. The most popular browsers are supported from the box (chrome, firefox, edge, ie, safari, opera). Some less popular are also supported with a little configuration (phantomjs, htmlunit). See Wiki.

Other browsers can be also used by passing webdriver class name.


E.g. to run tests with Firefox browser: -Dselenide.browser=firefox


How can I tell Selenide use browser with my custom profile?

You can also provide Selenide an instance of webdriver that you configured according to your needs. Go to Wiki for details.


Can I use Selenide with Selenium Grid?

Yes, Selenide supports Selenium Grid. Just add property -Dselenide.remote=http://localhost:4444/wd/hub when running tests.


Can I use Selenide with Selenoid?

Yes, Selenide supports Selenoid. Just add property -Dselenide.remote=http://localhost:4444/wd/hub when running tests.
We also recommend using Selenide plugin selenide-selenoid.


Can I use Selenide for testing mobile applications?

Yes, Selenide supports testing of mobile applications using Appium.

  1. We also recommend using Selenide plugin selenide-appium.
  2. You can find working examples on github
  3. You can watch a presentation about using Selenide for mobile

Build scripts

Can I run Selenide tests on CI (continuous integration) server?

Yes. Please look at Wiki page for examples of build script.

Screenshots

Can I take screenshot?

Yes. See documentation -> Screenshots

Can I tell Selenide to put screenshots to a specific folder?

Yes. See documentation -> Screenshots

Browser windows / tabs

How can I switch between browser windows/tabs?

You can use Selenium WebDriver API for switching between browser windows.

  • getWebDriver().getWindowHandles() - returns set of all browser windows/tabs
  • getWebDriver().getWindowHandle() - returns unique identifier of active window/tab

Source code of Selenide

Can I access source code of Selenide?

Sure. Source code of Selenide is published at github.

Can I modify Selenide?

Sure! It’s open-source. You can either create Pull Request or Feature Request.

License

How much does Selenide cost?

Does Selenide license allow me to share source code of tests with my customer?

Selenide - free open-source product distributed with MIT license. Shortly said, it means that you can do anything with it.

Wouldn’t you make Selenide paid at some moment?

No. For sure. Selenide will always be free.

  • Firstly, because we believe in Open Source.
  • Secondly, because we don’t believe we can earn a lot of money this way. :)

Nice to read

  • Set-up environment with gradle, junit5, allure and selenide – read a post on medium, grab from github
  • Small step do dramatically improve your tests speed – read a post on medium
  • Another way to improve tests speed – read a post on medium