WebViewAssertions


class WebViewAssertions


A collection of WebAssertions that assert on WebViews.

Summary

Nested types

Converts a result to a String.

Public functions

java-static WebAssertion<Document!>!
webContent(domMatcher: Matcher<Document!>!)

A WebAssertion which asserts that the document is matched by the provided matcher.

java-static WebAssertion<E!>!
<E> webMatches(atom: Atom<E!>!, resultMatcher: Matcher<E!>!)

A WebAssertion which asserts that the given Atom's result is accepted by the provided matcher.

java-static WebAssertion<E!>!
<E> webMatches(
    atom: Atom<E!>!,
    resultMatcher: Matcher<E!>!,
    resultDescriber: WebViewAssertions.ResultDescriber<Any!>!
)

A WebAssertion which asserts that the given Atom's result is accepted by the provided matcher.

Public functions

webContent

java-static fun webContent(domMatcher: Matcher<Document!>!): WebAssertion<Document!>!

A WebAssertion which asserts that the document is matched by the provided matcher.

webMatches

java-static fun <E> webMatches(atom: Atom<E!>!, resultMatcher: Matcher<E!>!): WebAssertion<E!>!

A WebAssertion which asserts that the given Atom's result is accepted by the provided matcher.

Parameters
atom: Atom<E!>!

an atom to evaluate on the webview

resultMatcher: Matcher<E!>!

a matcher to apply to the result of the atom.

webMatches

java-static fun <E> webMatches(
    atom: Atom<E!>!,
    resultMatcher: Matcher<E!>!,
    resultDescriber: WebViewAssertions.ResultDescriber<Any!>!
): WebAssertion<E!>!

A WebAssertion which asserts that the given Atom's result is accepted by the provided matcher.

Parameters
atom: Atom<E!>!

an atom to evaluate on the webview

resultMatcher: Matcher<E!>!

a matcher to apply to the result of the atom.

resultDescriber: WebViewAssertions.ResultDescriber<Any!>!

a describer that converts the result to a string.

In this codelab, you’ll build an Android app that uses Dagger to do Dependency Injection.

Updated Dec 10, 2024

API reference packages and classes for Android app developers.

Updated Feb 10, 2025

App architecture design is an important consideration for ensuring that your apps are robust, testable, and maintainable. Android provides a set of libraries and components to help you put together your app according to best practices.

Updated Feb 10, 2025