Why Selenium webdriver is not enough?
Why yet another Selenium wrapper?
Briefly: shorter code, easier to read, no need to re-invent the wheels.
And lots of features for testing.
And automated screenshots and reports.
And video recording.
And tests for mobile apps.
And much, much more…
Find more detailed answer here
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.
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;
}
Also, you can create file “selenide.properties” in classpath
(in a typical project, it means create file src/test/resources/selenide.properties
):
> cat src/test/resources/selenide.properties
selenide.timeout=6000
selenide.browser=edge
selenide.remote=https://hub.lambdatest.com/wd/hub
selenide.textCheck=FULL_TEXT
About browser settings - you don’t need to always specify them globally. You can also specify them every time when opening a browser:
Config config = new SelenideConfig().browser("firefox").browserSize("800x600");
open("/one", config);
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 (e.g. htmlunit). See Wiki.
Other browsers can be also used by passing webdriver class name (or factory 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 when running tests:
-Dselenide.remote=https://your.grid.com:5678/wd/hub
Most of the functions will work out-of-the-box.
But for some features (e.g. downloading files) you will need to add dependency com.codeborne:selenide-grid
.
Can I use Selenide with Selenoid?
Yes, Selenide supports Selenoid. Just add property when running tests:
-Dselenide.remote=https://your.selenoid.com:5678/wd/hub
Most of the functions will work out-of-the-box.
But for some features (e.g. downloading files) you will need to add dependency com.codeborne:selenide-selenoid
.
Can I use Selenide with Selenoid/Moon/BrowserStack/LambdaTest/TestContainers or other cloud providers?
Yes. See documentation
Can I use Selenide for testing mobile applications?
Yes, Selenide supports testing of mobile applications using Appium.
This is what you need to do:
Can I run Selenide tests on CI (continuous integration) server?
Yes. Please look at Wiki page for examples of build script using Maven, Gradle or Ant.
Can I take screenshot?
Yes. See documentation -> Screenshots
Can I tell Selenide to put screenshots to a specific folder?
Yes. See documentation -> Screenshots
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/tabsgetWebDriver().getWindowHandle()
- returns unique identifier of active window/tabCan 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
See contributing guide.
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.