selenium icon indicating copy to clipboard operation
selenium copied to clipboard

Kotlin support

Open qwertukg opened this issue 9 years ago • 2 comments

Hello guys! I was try to find something for Kotlin but can't. And was write some small DSL, who use a Kotlin builders style way. It will be very cool, if will be something like this in a future, from official team. Good luck!

qwertukg avatar Jul 02 '17 10:07 qwertukg

Kotlin example

var result = ""

chromeDriver("d:/chromedriver.exe") {
    get("http://google.com")

    elementById("lst-ib") {
        sendKeys("kotlin")

        wait(10) {
            elementVisibilityById("_fZl") {
                click()
            }

            elementVisibilityBySelector("a[href = 'https://kotlinlang.org/']") {
                result = text
            }
        }
    }
}

qwertukg avatar Jul 02 '17 11:07 qwertukg

I'm not sure that there is anyone on the team working with Kotlin so I doubt there will be official bindings for that language.

However, there is nothing stopping you from creating Kotlin bindings, we'll be more than happy to mention it in Downloads.

p0deje avatar Jul 03 '17 06:07 p0deje