Skip to content

DarkWeird/SeKt

Repository files navigation

SeKt

Pure kotlin async selenium/webdriver client

Status

Features:

  • Page object support
  • Handling StaleReferenceException
  • Strict models (kotlinx.serialization)
  • More sugar
  • Support for DevTools
  • Docs

Protocols:

  • W3C
  • Appium
  • SauceLab
  • BrowserStack

Http clients:

  • Ktor

Platforms (not multiplatform yet):

  • Jvm
  • Js
  • Native

Usage

       val webdriver = webdriver(
            "http://localhost:4444",
            listOf(
                w3cConverter()
            )
        )

        val session = webdriver.session(
            DefaultSessionCreator,

            capabilities
            {
                browserName = "firefox"
                platformName = "linux"
                browserVersion = "92.0"

            }) {
            setUrl(PageUrl("http://google.com"))
            findElement(xpath("//input[@name = 'q']")).sendKeys(Text("I want to found something"))
            findElement(xpath("//input[@name = 'btnK']")).click()
                //...
        }

Contributing

  1. Fork
  2. Make changes
  3. Create PR

About

Pure kotlin async selenium/webdriver client

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages