Can we attach XCUITest or UIAutomator session with Appium Inspector?

In Appium Inspector we have option to attach appium session. The question is , is it possible to attach XCUITest/WDA or UiAutomator session with appium inspector?

Appium Inspector represents a “Client” in Appium architecture, while XCUITest/Uiautomator2 are “Drivers” used by the client to attach to the Appium server. So yes, you can use XCUITest/Uiautomator2 drivers in the Inspector client to attach to Appium server and run a session.

You should probably run through this tutorial for a practical guide:

Thanks for the reply. May be my question was not clear.
If there’s an appium session created, then I’m able to attach that session in the appium inspector.
My question is, when appium session created for a device, internally it creates a WDA(iOS)/UIAutomator(Android) session. Can we attach this session in the appium inspector? Because I see only the list of appium sessions in the attach session dropdown. Even If I enter the WDA/UiAutomator session , it does not allow to attach. So, is there anyway for this?

For some reason, I don’t want to create appium session and I just want to use the WDA/UIAutomator session and see the page source.
Thanks.

If you don’t start the Appium server, Inspector is not going to work for you. Maybe you want to use UiAutomatorViewer?