WinAppDriver icon indicating copy to clipboard operation
WinAppDriver copied to clipboard

Perform tests on same app twice

Open Eirel opened this issue 3 years ago • 1 comments

Hey WinAppDriver community !

We've developped an windows desktop app based over gRPC protocol to allow communication between two instances of the said app over a specific network. We've also designed tests using appium, but we encounter issues when the tests run: for no reason, the selection of element by id or by name select element on the invalid instance. Let me give an example:

We run a new session using the first instance of the app. On this app, we select a checkbox using id 'xChkAutomate', and click to check it. The checkbox gets checked correctly We run a second session, using the second instance of the same app (some inside code allows the whole process to work on a single machine, for test purpose). We then try to select the xChkAutomate box on the session2, but randomly, the box on the first session get's selected rather than the second one.

It's surely due to the fact that this is the same app, having the same id, but we were expecting the session to handle this kind of issue, Is there a way to do so ?

Eirel avatar May 18 '22 20:05 Eirel

Can you please share the code? I have used in my project and it works flawlessly?

anunay1 avatar May 29 '22 16:05 anunay1