Skip to content
Andrei Solntsev edited this page Jan 28, 2015 · 29 revisions

How to start?

Just put selenide.jar to your project.

For Maven, Ivy, Gradle etc., users: add the following dependency to your project:

<dependency org="com.codeborne" name="selenide" revision="2.16"/>

Import the following methods:

import static com.codeborne.selenide.Selenide.*;
import static com.codeborne.selenide.Condition.*;

And start writing UI Tests!

@Test
public void userCanLoginByUsername() {
   open("/login");
   $(By.name("username")).setValue("johny");
   $("#submit").click();
   $(".success-message").shouldHave(text("Hello, Johny!"));
}

You can find some Selenide usages in the example project Hangman.

There is also a separate project with examples of Selenide usages: [selenide-examples] (https://github.com/selenide-examples)

Clone this wiki locally