WinAppDriver icon indicating copy to clipboard operation
WinAppDriver copied to clipboard

modal dialogs and blocking

Open peterainbow opened this issue 5 years ago • 4 comments

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

peterainbow avatar Jun 03 '20 16:06 peterainbow

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.

kfrajtak avatar Jun 04 '20 14:06 kfrajtak

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

peterainbow avatar Jun 04 '20 18:06 peterainbow

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

peterainbow avatar Jun 04 '20 20:06 peterainbow

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 .

kfrajtak avatar Jun 06 '20 09:06 kfrajtak