Step 1. Add the JitPack repository to your build file
Add it in your root settings.gradle at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
Add it in your settings.gradle.kts at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url = uri("https://jitpack.io") }
}
}
Add to pom.xml
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Add it in your build.sbt at the end of resolvers:
resolvers += "jitpack" at "https://jitpack.io"
Add it in your project.clj at the end of repositories:
:repositories [["jitpack" "https://jitpack.io"]]
Step 2. Add the dependency
dependencies {
implementation 'com.github.wengxiaofeng:selenide:selenide-4.4.1'
}
dependencies {
implementation("com.github.wengxiaofeng:selenide:selenide-4.4.1")
}
<dependency>
<groupId>com.github.wengxiaofeng</groupId>
<artifactId>selenide</artifactId>
<version>selenide-4.4.1</version>
</dependency>
libraryDependencies += "com.github.wengxiaofeng" % "selenide" % "selenide-4.4.1"
:dependencies [[com.github.wengxiaofeng/selenide "selenide-4.4.1"]]
Selenide is a framework for writing easy-to-read and easy-to-maintain automated tests in Java. It defines concise fluent API, natural language assertions and does some magic for ajax-bases applications to let you focus entirely on the business logic of your tests.
Selenide is based on and is compatible to Selenium WebDriver 2.0 and 3.0
@Test
public void testLogin() {
open("/login");
$(By.name("user.name")).setValue("johny");
$("#submit").click();
$("#username").shouldHave(text("Hello, Johny!"));
}
Look for detailed comparison of Selenide and Selenium WebDriver API.
Here is CHANGELOG
Just put selenide.jar to your project and import the following methods: import static com.codeborne.selenide.Selenide.*;
Look for Quick Start for details.
See Frequently asked questions
git clone https://github.com/selenide/selenide.git
cd selenide
./gradlew jar
After build you'll find Selenide's .jar file under build/libs/
directory.
To build Selenide on Windows use gradlew.bat jar
command.
Feel free to fork, clone, build, run tests and contribute pull requests for Selenide!
Selenide was originally designed and developed by Andrei Solntsev in 2011-2015.
Many thanks to these incredible tools that help us creating open-source software:
Selenide is open-source project, and distributed under the MIT license