Skip to content

rmarinsky/drama

Repository files navigation

Drama = UI Testing micro wrapper powered by Playwright

Usage

@Test
public void test() {
    open("https://google.com");
    $("[name=q]").fill("Selenide").pressEnter();
    $("#search").shouldHave(text("selenide.org"));
}

Add dependency

Gradle

Add to setting.gradle file:

dependencyResolutionManagement {
    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
    repositories {
        mavenCentral()
        maven { url 'https://jitpack.io' }
    }
}

or just add to repositories section in build.gradle to repositories block:

repositories {
    maven { url 'https://jitpack.io' }
}

and to dependencies section in build.gradle file:

implementation 'com.github.rmarinsky:drama:0.36'

Maven

<repositories>
    <repository>
        <id>jitpack.io</id>
        <url>https://jitpack.io</url>
    </repository>
</repositories>

and to dependencies section:

<dependency>
    <groupId>com.github.rmarinsky</groupId>
    <artifactId>drama</artifactId>
    <version>0.36</version>
</dependency>