Show API reference for

Testing element classes

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.

priority_high

Warning

This method does not exist in version 1.25.0 of Streamlit.

priority_high

Warning

This method does not exist in version 1.25.0 of Streamlit.

priority_high

Warning

This method does not exist in version 1.25.0 of Streamlit.

priority_high

Warning

This method does not exist in version 1.25.0 of Streamlit.

priority_high

Warning

This method does not exist in version 1.25.0 of Streamlit.

priority_high

Warning

This method does not exist in version 1.25.0 of Streamlit.

priority_high

Warning

This method does not exist in version 1.25.0 of Streamlit.

priority_high

Warning

This method does not exist in version 1.25.0 of Streamlit.

priority_high

Warning

This method does not exist in version 1.25.0 of Streamlit.

priority_high

Warning

This method does not exist in version 1.25.0 of Streamlit.

priority_high

Warning

This method does not exist in version 1.25.0 of Streamlit.

priority_high

Warning

This method does not exist in version 1.25.0 of Streamlit.

priority_high

Warning

This method does not exist in version 1.25.0 of Streamlit.

priority_high

Warning

This method does not exist in version 1.25.0 of Streamlit.

priority_high

Warning

This method does not exist in version 1.25.0 of Streamlit.

priority_high

Warning

This method does not exist in version 1.25.0 of Streamlit.

forum

Still have questions?

Our forums are full of helpful information and Streamlit experts.