WinAppDriver
WinAppDriver copied to clipboard
WinAppDriver is launching the test application endlessly when starting the test
I am running the following script:
from appium import webdriver
import time
from appium.options.windows import WindowsOptions
# Desired capabilities for Windows application
desired_caps = {
"app": "C:\\ondemandanalysis-0.3.0.36\\oda.bat", # Path to Notepad
"platformName": "Windows",
"app_working_dir": "C:\\ondemandanalysis-0.3.0.36\\",
"deviceName": "WindowsPC", # Local machine
}
driver = webdriver.Remote(
"http://127.0.0.1:4723/wd/hub", options=WindowsOptions().load_capabilities(desired_caps)
)
time.sleep(2)
print(driver.page_source)
driver.quit()
In order to have the windows app C:\\ondemandanalysis-0.3.0.36\\oda.bat, download it from https://drive.google.com/file/d/18qgnRtSXGh14nN0iVGCP_WEUMEkp1diR/view?usp=drive_link
Expected Behavior
Appium should launch the application once and print to screen the app elements.
Appium Server logs: https://github.com/bwomsm1/AppiumLogs/blob/master/appium_win.log