WinAppDriver
WinAppDriver copied to clipboard
modal dialogs and blocking
in my test app there is a modal app that i want to bring up
and then to be able to test it as well
but currently the driver blocks on clicking a button that starts a dialog ( i think by design )
i tried t take out the WaitOne in ClickElementCommandHandler
which gt it past it, but still seems to be a block in the task scheduler or gui thread as when i make further calls, eg find they don't run until the modal dialog goes
Why would you like to click again on the button that triggered the action which opened the modal dialog? In general, this is something that I've been hacking around to no acceptable and fully working code. Feel free to create a MVP to reproduce the problem or create a pull request.
no i am trying to interact with the newly opened dialog which i cannot, i'll see if i can come up with some simple test code, but the issue of ui automation and modal dialogs blocking is all over the place, the first try and spinning a thread off seems to fix it, but if you dig deeper you'll see that further calls to ui automation block
btw i experimented with sending a lbuttondown/up message to the window which worked, but not sure how to diff between when this needed and not, not on msofts winappdriver they also move the cursor abouth when doing click events, baffled why they don;t make it open source
Can you share the code? Preferably as PR. What do you mean by the "diff"?
On Thu, 4 Jun 2020, 22:10 peterainbow, [email protected] wrote:
btw i experimented with sending a lbuttondown/up message to the window which worked, but not sure how to diff between when this needed and not, not on msofts winappdriver they also move the cursor abouth when doing click events, baffled why they don;t make it open source
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/kfrajtak/WinAppDriver/issues/11#issuecomment-639089989, or unsubscribe https://github.com/notifications/unsubscribe-auth/AALQYNFWEJZWWB2ODO4V2ADRU75T3ANCNFSM4NRZTRRQ .