All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jsMain.com.zegreatrob.wrapper.wdio.Browser.kt Maven / Gradle / Ivy

There is a newer version: 5.6.6
Show newest version
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
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy