google-code-export / wipflash

Automatically exported from code.google.com/p/wipflash
1 stars 1 forks source link

Modal dialogs #45

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I've been struggling to find a way to work with modal dialogs and 
wipflash/automation.

I tried creating a new thread which launches the modal dialog leaving the 
current thread to continue automating. However subsequent Find<T>() calls on 
the main thread then appear to always fail causing the blocked thread to throw 
a COMException.

Would be great to have some Window.ShowDialog() examples in the 
WiPFlash.Examples project

Regards

Ed

Original issue reported on code.google.com by ewi...@gmail.com on 20 Aug 2010 at 10:29

GoogleCodeExporter commented 9 years ago
Thanks for the suggestion, Ed. I'll add a dialog to the purchasing step and see 
if there's anything I can do about your threading issue.

Original comment by featheredwings@gmail.com on 21 Aug 2010 at 5:11

GoogleCodeExporter commented 9 years ago
Hi Ed, I have now added a step which brings up a dialog and interacts with it. 
You can find the scenario here: 
http://code.google.com/p/wipflash/source/browse/Example.PetShop.Scenarios/PetReg
istrationAndPurchase.cs

There is now a WindowFinder which will find a dialog window for you.

I suspect from your description that you may be doing something differently 
with your threads. I didn't need to use threading at all to interact with the 
dialog. If this example doesn't help you to resolve your problem then please 
could you attach a failing test or a piece of code which demonstrates what 
you'd like to do?

Thank you for your patience. Updates should be more frequent moving into 2011.

Original comment by featheredwings@gmail.com on 22 Oct 2010 at 8:11