Issue with Win 10 Application automation

Hi Everyone,

I am trying to automate the Windows 10 app using Appium. I have downloaded Winapp driver as well and started my Appium server.

But I am encountering the issue and the error message shown in the Console is “It is impossible to create a new session because ‘create session’ which takes HttpClient, InputStream and long was not found”

Can you please help me to solve this issue?

Attached the screenshot herewith for your reference.

Many Thanks,

Regards,
Sairam Prasath.

public class SampleTest {
static WiniumDriver driver=null;

public static void main(String[] args) throws MalformedURLException {
	
DesktopOptions options= new DesktopOptions();
options.setApplicationPath("C:\\Program Files (x86)\\Notepad++\\notepad++.exe");
try{
	driver=new WiniumDriver(new URL ("http://localhost:9999"),options);
		}catch(Exception e){
			System.out.println(e);
		}
	try {
		JavascriptExecutor executor = (JavascriptExecutor)driver;
		// executor.executeScript("Qos.isEnabled = false;");
		driver.findElementById("Item 2").click();
		driver.findElementByClassName("Scintilla").sendKeys("Jitu Is hero");
	} catch (Exception e) {
		// TODO Auto-generated catch block
		e.printStackTrace();
	}
}
public static void sampleTest()
{
	

}

}

Hi Jitu, Thanks for your attention and reply. But this code seems to be from Winnium right?

I need to execute it in Appium.

Any insights on this please?

Regards,
Sairam Prasath.

i will try and share you the code