org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Response code 400. Message: platform name is missing in the capabilities
Driver info: io.appium.java_client.android.AndroidDriver
desiredCapabilities=Capabilities {accessKey: p1xyQltWLZknN…, app: lt://APP10160241051…, autoGrantPermissions: true, build: Local-Execution_12-L-5CD223…, deviceName: Galaxy S23, isRealMobile: true, network: false, platformName: ANDROID, platformVersion: 13.0, sessionName: Nykaa_Preview_Bottom_Sheet_…, url: https://mukul2:p1xyQltWLZkn…, user: mukul2}}]
Capabilities {}
These same capabilities when i run from appium inspector by connecting lambdatest will run fine. But when i try to use this same caps in my framework it is giving that platform name is missing and as you can see it is giving platform name correctly in caps. Please help me on this…
If you select- Appium , and Java TestNG as your framework
the capabilities would be like :
DesiredCapabilities capabilities = new DesiredCapabilities();
**HashMap<String, Object> ltOptions = new HashMap<String, Object>();**
**ltOptions.put("w3c", true);**
**ltOptions.put("platformName", "android");**
**ltOptions.put("deviceName", "Pixel 3");**
**ltOptions.put("platformVersion", "9");**
**ltOptions.put("isRealMobile", true);**
**capabilities.setCapability("lt:options", ltOptions);**
Please try it this way and add the capabilities as per your framework and let us know.