Selenium: Trouble with Java and Kotling together when using JavascriptExecitor
I have a testing framework using Selenium and Cucumber, where (for now) most of the step definitions for the tests are written in Java. But I'm gradually converting to Kotlin, and therefore my newest "helper/util" class is written in Kotlin.
The SeleniumUtils.kt class:
import no.our.e2e.framework.selenium.Browser
import
org.openqa.selenium.By
import org.openqa.selenium.JavascriptExecutor
object SeleniumUtils {
fun elementExistsOnPage(idSelector: String?): Boolean {
return...