Skip to content

Latest commit

 

History

History
65 lines (47 loc) · 1.1 KB

README.md

File metadata and controls

65 lines (47 loc) · 1.1 KB

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