Skip to content

Kotlenide ❤️is: Kotlin + Selenide! This library contains kotlin extension / infix functions around very user-friendly and probably best selenium-based library, called selenide

License

Notifications You must be signed in to change notification settings

daggerok/kotlenide

Repository files navigation

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

About

Kotlenide ❤️is: Kotlin + Selenide! This library contains kotlin extension / infix functions around very user-friendly and probably best selenium-based library, called selenide

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages