Spaces:
Sleeping
Sleeping
A newer version of the Streamlit SDK is available:
1.48.1
metadata
title: Testing element classes
slug: /develop/api-reference/app-testing/testing-element-classes
Testing element classes
st.testing.v1.element_tree.Block
The Block
class has the same methods and attributes as AppTest
. A Block
instance represents a container of elements just as AppTest
represents the entire app. For example, Block.button
will produce a WidgetList
of Button
in the same manner as AppTest.button
.
ChatMessage
, Column
, and Tab
all inherit from Block
. For all container classes, parameters of the original element can be obtained as properties. For example, ChatMessage.avatar
and Tab.label
.