selenium
selenium copied to clipboard
Kotlin support
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!
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
}
}
}
}
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.