Need help in Mac desktop automation using Mac2Driver

Hi Everyone,

I’m using Appium 2.0 and XCUITestDriver and Mac2Driver to automate.

I need help with automating and inspecting Desktop elements

How to launch Apple configurator?
which software to use for inspecting mac Desktop app locators?

Ecllipse code

public class macOSX {

private Mac2Driver driver;

@Test
public void appleConfigurator() throws IOException {
	DesiredCapabilities caps = new DesiredCapabilities();
	caps.setCapability("platformName", "Mac");
	caps.setCapability("deviceName", "Mac");
	caps.setCapability("automationName", "Mac2");
	caps.setCapability("bundleId", "com.apple.finder");
	caps.setCapability("newCommandTimeout", 300);
	
	driver =  new Mac2Driver(new URL("http://localhost:4723/"), caps);
    driver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);
   
}

unable to launch Apple configurator.

Appium logs

[HTTP] --> GET /session/7febe626-4b36-4083-9569-26124dd1a6f1/timeouts
[HTTP] {}
[debug] [AppiumDriver@4b84] Encountered internal error running command: NoSuchDriverError: A session is either terminated or not started
[debug] [AppiumDriver@4b84] at asyncHandler (/usr/local/lib/node_modules/appium/node_modules/@appium/base-driver/lib/protocol/protocol.js:268:15)
[debug] [AppiumDriver@4b84] at /usr/local/lib/node_modules/appium/node_modules/@appium/base-driver/lib/protocol/protocol.js:462:15
[debug] [AppiumDriver@4b84] at Layer.handle [as handle_request] (/usr/local/lib/node_modules/appium/node_modules/express/lib/router/layer.js:95:5)
[debug] [AppiumDriver@4b84] at next (/usr/local/lib/node_modules/appium/node_modules/express/lib/router/route.js:144:13)
[debug] [AppiumDriver@4b84] at Route.dispatch (/usr/local/lib/node_modules/appium/node_modules/express/lib/router/route.js:114:3)
[debug] [AppiumDriver@4b84] at Layer.handle [as handle_request] (/usr/local/lib/node_modules/appium/node_modules/express/lib/router/layer.js:95:5)
[debug] [AppiumDriver@4b84] at /usr/local/lib/node_modules/appium/node_modules/express/lib/router/index.js:284:15
[debug] [AppiumDriver@4b84] at param (/usr/local/lib/node_modules/appium/node_modules/express/lib/router/index.js:365:14)
[debug] [AppiumDriver@4b84] at param (/usr/local/lib/node_modules/appium/node_modules/express/lib/router/index.js:376:14)
[debug] [AppiumDriver@4b84] at Function.process_params (/usr/local/lib/node_modules/appium/node_modules/express/lib/router/index.js:421:3)
[debug] [AppiumDriver@4b84] at next (/usr/local/lib/node_modules/appium/node_modules/express/lib/router/index.js:280:10)
[debug] [AppiumDriver@4b84] at logger (/usr/local/lib/node_modules/appium/node_modules/morgan/index.js:144:5)
[debug] [AppiumDriver@4b84] at Layer.handle [as handle_request] (/usr/local/lib/node_modules/appium/node_modules/express/lib/router/layer.js:95:5)
[debug] [AppiumDriver@4b84] at trim_prefix (/usr/local/lib/node_modules/appium/node_modules/express/lib/router/index.js:328:13)
[debug] [AppiumDriver@4b84] at /usr/local/lib/node_modules/appium/node_modules/express/lib/router/index.js:286:9
[debug] [AppiumDriver@4b84] at Function.process_params (/usr/local/lib/node_modules/appium/node_modules/express/lib/router/index.js:346:12)
[debug] [AppiumDriver@4b84] at next (/usr/local/lib/node_modules/appium/node_modules/express/lib/router/index.js:280:10)
[debug] [AppiumDriver@4b84] at jsonParser (/usr/local/lib/node_modules/appium/node_modules/body-parser/lib/types/json.js:110:7)
[debug] [AppiumDriver@4b84] at Layer.handle [as handle_request] (/usr/local/lib/node_modules/appium/node_modules/express/lib/router/layer.js:95:5)
[debug] [AppiumDriver@4b84] at trim_prefix (/usr/local/lib/node_modules/appium/node_modules/express/lib/router/index.js:328:13)
[debug] [AppiumDriver@4b84] at /usr/local/lib/node_modules/appium/node_modules/express/lib/router/index.js:286:9
[debug] [AppiumDriver@4b84] at Function.process_params (/usr/local/lib/node_modules/appium/node_modules/express/lib/router/index.js:346:12)
[debug] [AppiumDriver@4b84] at next (/usr/local/lib/node_modules/appium/node_modules/express/lib/router/index.js:280:10)
[debug] [AppiumDriver@4b84] at Layer.handle [as handle_request] (/usr/local/lib/node_modules/appium/node_modules/express/lib/router/layer.js:91:12)
[debug] [AppiumDriver@4b84] at trim_prefix (/usr/local/lib/node_modules/appium/node_modules/express/lib/router/index.js:328:13)
[debug] [AppiumDriver@4b84] at /usr/local/lib/node_modules/appium/node_modules/express/lib/router/index.js:286:9
[debug] [AppiumDriver@4b84] at Function.process_params (/usr/local/lib/node_modules/appium/node_modules/express/lib/router/index.js:346:12)
[debug] [AppiumDriver@4b84] at next (/usr/local/lib/node_modules/appium/node_modules/express/lib/router/index.js:280:10)
[debug] [AppiumDriver@4b84] at methodOverride (/usr/local/lib/node_modules/appium/node_modules/method-override/index.js:65:14)
[debug] [AppiumDriver@4b84] at Layer.handle [as handle_request] (/usr/local/lib/node_modules/appium/node_modules/express/lib/router/layer.js:95:5)
[debug] [AppiumDriver@4b84] at trim_prefix (/usr/local/lib/node_modules/appium/node_modules/express/lib/router/index.js:328:13)
[debug] [AppiumDriver@4b84] at /usr/local/lib/node_modules/appium/node_modules/express/lib/router/index.js:286:9
[debug] [AppiumDriver@4b84] at Function.process_params (/usr/local/lib/node_modules/appium/node_modules/express/lib/router/index.js:346:12)
[debug] [AppiumDriver@4b84] at next (/usr/local/lib/node_modules/appium/node_modules/express/lib/router/index.js:280:10)
[debug] [AppiumDriver@4b84] at urlencodedParser (/usr/local/lib/node_modules/appium/node_modules/body-parser/lib/types/urlencoded.js:91:7)
[debug] [AppiumDriver@4b84] at Layer.handle [as handle_request] (/usr/local/lib/node_modules/appium/node_modules/express/lib/router/layer.js:95:5)
[debug] [AppiumDriver@4b84] at trim_prefix (/usr/local/lib/node_modules/appium/node_modules/express/lib/router/index.js:328:13)
[debug] [AppiumDriver@4b84] at /usr/local/lib/node_modules/appium/node_modules/express/lib/router/index.js:286:9
[debug] [AppiumDriver@4b84] at Function.process_params (/usr/local/lib/node_modules/appium/node_modules/express/lib/router/index.js:346:12)
[debug] [AppiumDriver@4b84] at next (/usr/local/lib/node_modules/appium/node_modules/express/lib/router/index.js:280:10)
[HTTP] <-- GET /session/7febe626-4b36-4083-9569-26124dd1a6f1/timeouts 404 5 ms - 4448
[HTTP]