--- title: st.testing.v1.AppTest slug: /develop/api-reference/app-testing/st.testing.v1.apptest ---

# The AppTest class # Initialize a simulated app using AppTest # Run an AppTest script # Get AppTest script elements The main value of `AppTest` is providing an API to programmatically inspect and interact with the elements and widgets produced by a running Streamlit app. Using the `AppTest.` properties or `AppTest.get()` method returns a collection of all the elements or widgets of the specified type that would have been displayed by running the app. Note that you can also retrieve elements within a specific container in the same way - first retrieve the container, then retrieve the elements just in that container.