jsMain.com.zegreatrob.wrapper.wdio.Browser.kt Maven / Gradle / Ivy
package com.zegreatrob.wrapper.wdio
import kotlin.js.Json
import kotlin.js.Promise
external interface Browser {
val config: Json
fun `$`(selector: String): Promise
fun `$$`(selector: String): Promise>
fun waitUntil(condition: () -> Promise, options: Json): Promise
fun getUrl(): Promise
fun acceptAlert(): Promise
fun dismissAlert(): Promise
fun getAlertText(): Promise
fun navigateTo(location: String): Promise
fun url(url: String): Promise
fun getLogs(s: String): Promise>
fun isAlertOpen(): Promise
fun execute(code: (dynamic) -> dynamic, argument: dynamic)
fun executeAsync(arg: (dynamic, () -> Unit) -> dynamic, argument: dynamic): Promise
fun refresh(): Promise
}