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?
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);
"
but there's error: "org.openqa.selenium.winium.WiniumDriverService.checkExecutable".
How can I fix this?