0

IT downloaded and installed WinAppDriver for me. I built it into Selenium with a testng application I had. The dataprovider (part of) is like this:

    WindowsDriver app = null;
    try {
        DesiredCapabilities caps = new DesiredCapabilities();
        caps.setCapability("appId", "src\\main\\respurces\\dummy.bat");
        caps.setCapability("platformName", "Windows");
        caps.setCapability("deviceName", "WindowsPC");
        app = new WindowsDriver(new URL("http://127.0.0.1:4723"), caps);
        app.manage().timeouts().implicitlyWait(2, TimeUnit.SECONDS);
        testData.drv = app;
    } catch (Exception e) {
        throw new AssertionError(e.getMessage(), e);
    }

The appId line was not originally there. I ran it and when it got to the point where it created the driver, I got the error " Response code 400. Message: Missing command parameter: appId ", so I added it as shown above. Perhaps the ID is not correct but I still get the same error about missing appId. I did some searches and found similar problems but they were either for apple or mobile with Google. I am using Windows 10 Enterprise with Selenium and Java. I am running WinAppDriver in the background.

As an aside, if possible I do not want to specify an app name as the app (Edge) will already be up and running. I need this only to enter windows login and password into boxes, as http://user:password@url.com does not seem to work.

Any idea about this error?

Tony
  • 1,127
  • 1
  • 18
  • 29

0 Answers0