balin / com.github.epadronu.balin.extensions / kotlin.collections.List

Extensions for kotlin.collections.List

$

fun List<SearchContext>.$(selector: String, index: Int): WebElement

Find the nth element that can be located within the current context by the given CSS selector.

fun List<SearchContext>.$(selector: String, range: IntRange): List<WebElement>

Find all the elements that can be located by the given CSS selector within the current context, restricted by the specified range.

fun List<SearchContext>.$(selector: String, vararg indices: Int): List<WebElement>

Find all the elements that can be located by the given CSS selector within the current context, restricted by the specified indices. (If no index is provided, then all matching elements will be returned.)

find

fun List<SearchContext>.find(selector: String, index: Int): WebElement

Find the nth element that can be located within the current context by the given CSS selector.

fun List<SearchContext>.find(selector: String, range: IntRange): List<WebElement>

Find all the elements that can be located by the given CSS selector within the current context, restricted by the specified range.

fun List<SearchContext>.find(selector: String, vararg indices: Int): List<WebElement>

Find all the elements that can be located by the given CSS selector within the current context, restricted by the specified indices. (If no index is provided, then all matching elements will be returned.)