kotlenide

Kotlin + Selenide is: ❤️ Kotlenide!

License

License

Categories

Categories

IDE Development Tools Dagger Application Layer Libs Dependency Injection
GroupId

GroupId

com.github.daggerok
ArtifactId

ArtifactId

kotlenide
Last Version

Last Version

0.0.2
Release Date

Release Date

Type

Type

jar
Description

Description

kotlenide
Kotlin + Selenide is: ❤️ Kotlenide!
Project URL

Project URL

https://github.com/daggerok/kotlenide
Source Code Management

Source Code Management

https://github.com/daggerok/kotlenide/tree/master

Download kotlenide

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.daggerok/kotlenide/ -->
<dependency>
    <groupId>com.github.daggerok</groupId>
    <artifactId>kotlenide</artifactId>
    <version>0.0.2</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.daggerok/kotlenide/
implementation 'com.github.daggerok:kotlenide:0.0.2'
// https://jarcasting.com/artifacts/com.github.daggerok/kotlenide/
implementation ("com.github.daggerok:kotlenide:0.0.2")
'com.github.daggerok:kotlenide:jar:0.0.2'
<dependency org="com.github.daggerok" name="kotlenide" rev="0.0.2">
  <artifact name="kotlenide" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.daggerok', module='kotlenide', version='0.0.2')
)
libraryDependencies += "com.github.daggerok" % "kotlenide" % "0.0.2"
[com.github.daggerok/kotlenide "0.0.2"]

Dependencies

runtime (1)

Group / Artifact Type Version
org.jetbrains.kotlin : kotlin-stdlib-jdk8 jar 1.2.70

test (6)

Group / Artifact Type Version
org.slf4j : slf4j-api jar 1.7.25
org.jetbrains.kotlin : kotlin-test jar 1.2.70
org.jetbrains.kotlin : kotlin-test-junit jar 1.2.70
com.willowtreeapps.assertk : assertk-jvm jar 0.12
org.junit.jupiter : junit-jupiter-api jar 5.3.1
com.codeborne : selenide jar 4.14.1

Project Modules

There are no modules declared in this project.

kotlin + selenide = kotlenide ❤️ Build Status download Maven Central

logo

Status: in development:

  • Latest release: 0.0.2

  • Current version: 0.0.3

  • Feedback, suggestions any help or contributions are welcome!

Usage (TODO)

idiomatic kotlin DSL for UI ent-to-end testing, which is using famous good known selenide under the hood:
class `Awesome Kotlenide Tests` {
  @Test fun `selenide using idiomatic kotlin should be awesome`() {
    "https://google.com".open {
      find("body") {
        this contains "G"
        this has "mail"
        close()
      }
    }
  }

  @Test fun `should open given URL in chrome and assert using infix extension functions`() {
    "https://google.com".open("chrome") {
      find("body") {
        this.find(".ololo") shouldNotBe exist
        find(".trololo") shouldBeNot visible
        this shouldHaveText "Gmail"
        close()
      }
    }
  }
}

Read project reference documentation to learn more

Installation

TODO: kotlenide is available in both — maven central and bintray jcenter repositories

Note
Kotlenide itself is not included any selenide library, so we assume you already have one in your project dependencies. Otherwise — just add some together with kotlenide…​
Maven
dependencies {
  testImplementation 'com.github.daggerok:kotlenide:0.0.2'
  // Kotlenide also requires Selenide dependency:
  testImplementation 'com.codeborne:selenide:4.14.1'
}
Maven
<project>
  <dependencies>
    <dependency>
      <groupId>com.github.daggerok</groupId>
      <artifactId>kotlenide</artifactId>
      <version>0.0.2</version>
      <scope>test</scope>
    </dependency>
    <!-- Kotlenide also requires Selenide dependency: -->
    <dependency>
      <groupId>com.codeborne</groupId>
      <artifactId>selenide</artifactId>
      <version>4.14.1</version>
      <scope>test</scope>
    </dependency>
  </dependencies>
</project>

License

MIT

Versions

Version
0.0.2
0.0.1