Exploring Appium Inspector: Getting Started with Session Creation
Hello Everyone,
In this blog post, we will explore the concept of sessions in Appium and understand their importance in testing your application. Sessions in Appium act as a bridge of communication between your application and the Appium server.
Creating a New Session
To initiate the inspection process, it is necessary to create a fresh Appium session. This session allows you to navigate through the app and perform inspections effectively
- Make sure Appium Server is running.
- Set Desired Capabilities. You can find set of Desired Capabilities: https://dpgraham.github.io/docs/en/writing-running-appium/caps/
- Save Capabilities for Future use.
- After Adding Capabilities then Click on Start Session.
Make Sure you app is already installed if you are using appPackage and appActivity capability
Your session has been initiated. Please refresh source and Screenshot to update the screen for the next step.
You can access the Id, XPath, and various other attributes for each element. To verify an element or check its presence count, simply click on ‘Search Element,’ select the desired locator strategy, and copy the selector. Additionally, you can interact with the elements as needed
Thank you for Reading! In the next part, we will discuss how to connect to existing sessions.