I am using WinAppDriver and Appium to automate Windows GUI programs.
I am looking for a way to reuse an open program in its current state instead of launching a new one. The reason is that when automating a workflow, getting to a certain state may take several minutes. If something fails, I don't want to have to rerun all previous steps to get to the desired state.
With the python calculator example, initiializing a WinAppDriver session always opens a new Calculator instance, even if one was previously running:
def setUp(self):
#set up appium
desired_caps = {}
desired_caps["app"] = "Microsoft.WindowsCalculator_8wekyb3d8bbwe!App"
self.driver = webdriver.Remote(
command_executor='http://127.0.0.1:4723',
desired_capabilities= desired_caps)
I have tried adding noReset=True as a desired_caps, but it still launches a new instance.
If not, should a feature request be filed with Appium or with WinAppDriver?