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

selenium_steps_support.service.text_match.matchers.RegexTextMatcher.kt Maven / Gradle / Ivy

There is a newer version: 5.3.5
Show newest version
package selenium_steps_support.service.text_match.matchers

object RegexTextMatcher : TextMatcher {

    // todo: global Regex cache (with limited number of entries to not run out of memory)

    override fun matches(expectedText: String, actualText: String): Boolean {
        return actualText.matches(
                Regex(expectedText)
        )
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy