Skip to content

Error "org.openqa.selenium.winium.WiniumDriverService.checkExecutable" #363

Description

@ThuyMai96

I ran this code:
"public class Main {
public static void main(String[] args) throws MalformedURLException {
String appPath = "C:\Windows\System32\calc.exe";
String driverPath = "D:\Winium.Desktop.Driver\Winium.Desktop.Driver.exe";
System.setProperty("webdriver.winium.driver.desktop", driverPath);

    DesktopOptions options = new DesktopOptions();
    options.setApplicationPath(appPath);

    WiniumDriverService service = new WiniumDriverService.Builder()
            .usingDriverExecutable(new File(driverPath))
            .usingPort(9999)
            .withVerbose(true)
            .withSilent(false)
            .buildDesktopService();

    WiniumDriver driver = new WiniumDriver(service, options);
    driver.quit();
    service.stop();

"
but there's error: "org.openqa.selenium.winium.WiniumDriverService.checkExecutable".
How can I fix this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions