ViewTreeAssert
Assertions which require checking an entire view tree
NOTE: Assertions looking for visible attributes are limited to checking the visibility of the nodes, but do not check actual layout. So a visible view might have 0 pixels available for it in actual app code and still pass the checks done here
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Tests all views in the hierarchy under the root, for which the path is visible, are not displaying the requested drawable
Tests all views in the hierarchy under the root, for which the path is visible, do not have the requested drawable by the given resource id.
Link copied to clipboard
Tests that all views in the hierarchy under the root, for which the path is visible, do not have any text appearing on them
Tests that all views in the hierarchy under the root, for which the path is visible, do not have text equal to the string matching the given resource id
Tests that all views in the hierarchy under the root, for which the path is visible, do not have text equal to the given string
Link copied to clipboard
Tests that all views in the hierarchy under the root, for which the path is visible, do not have text that matches against the given regular expression
Link copied to clipboard
Whether there is not a visible view in the hierarchy with the given id.
Link copied to clipboard
Link copied to clipboard
Tests if any view hierarchy under the root has the given contentDescription.
Link copied to clipboard
Tests if any view hierarchy under the root do not has the given contentDescription.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Tests if any view hierarchy under the root has the given view tag and value.
Link copied to clipboard
Link copied to clipboard
Tests if any view in the hierarchy under the root, for which the path is visible, is displaying the requested drawable
Tests if any view in the hierarchy under the root, for which the path is visible, is displaying the requested drawable by the given resource id.
Link copied to clipboard
Tests if any view has visible text identified by the resource id
Tests if any view in the hierarchy under the root, for which the path is visible, has the requested piece of text as its text
Link copied to clipboard
Tests if any view in the hierarchy under the root, for which the path is visible, has text that matches the given regular expression
Link copied to clipboard
Tests if any view in the hierarchy under the root, for which the path is visible, has the requested piece of text as its text and has a tag set on that TextView with the given tag id and tag value.
Link copied to clipboard
Whether there is a visible view in the hierarchy with the given id.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard