2gis / Winium.Mobile

Winium.Mobile is Selenium Remote WebDriver implementation for automated testing of Windows StoreApps and Silverlight apps, tested on emulators (currently only Windows Phone/Mobile apps are supported).
Mozilla Public License 2.0
51 stars 29 forks source link

How to handle Windows MobileOS popups #152

Closed Pranodayd closed 8 years ago

Pranodayd commented 8 years ago

Hi @NickAb . I am using Winium.StoreApps for automating our Windows 10 mobile application.I have a question:As Winium.StopreApps work on the principle of Application Instrumentation,so should it be able to spy Mobile OS popups?I think it should not as it is not the part of instrumented application,this is what currently happening.

Now I want to wait till popup appears and then close it. How to achieve this using Winium.StoreApps as it does not have any controls outside the instrumented application. Please help. Thanks and Regards, Pranoday

Pranodayd commented 8 years ago

Hi @NickAb . I am using Winium.StoreApps for automating our Windows 10 mobile application.I have a question:As Winium.StopreApps work on the principle of Application Instrumentation,so should it be able to spy Mobile OS popups?I think it should not as it is not the part of instrumented application,this is what currently happening.

Now I want to wait till popup appears and then close it. How to achieve this using Winium.StoreApps as it does not have any control on UI elements outside the instrumented application. Please help. Thanks and Regards, Pranoday

NickAb commented 8 years ago

Any OS popups and MessageDialog (which can be shown by app, but is not attached to app's UI tree can not be found or interacted directly by driver). See similar issue #129. Solution, if available, is to replace any MessageDialog in your app with ContentDialog (which can be accessed by driver).