Created
June 7, 2023 12:10
-
-
Save oriahuzov/b329e2b93a17b426378af31953cc3327 to your computer and use it in GitHub Desktop.
code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Before("@install") | |
public void initWinAppDriver() { | |
WindowsOptions options = new WindowsOptions(); | |
options.setApp(getAppData("pathToFile")); | |
options.setPlatformName("windows"); | |
options.setAutomationName("windows"); | |
options.setCreateSessionTimeout(Duration.ofSeconds(30)); | |
options.setWaitForAppLaunch(Duration.ofSeconds(30)); | |
try { | |
ccleanerApp = new WindowsDriver(new URL("http://0.0.0.0:4723/wd/hub"), options); | |
System.out.println(ccleanerApp); | |
} catch (Exception e) { | |
e.printStackTrace(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment