Can't get UIAlertView properties (iOS)

6 posts, 1 answers
  1. Dimitar
    Dimitar avatar
    3 posts
    Member since:
    Aug 2012

    Posted 13 Oct 2014 Link to this post

    Hi there,

    I can't see a way to get properties or tap on buttons of an UIAlertView instance. Is it supported at all by Mobile Testing framework?

    Best,
    Dimitar
  2. Martin
    Admin
    Martin avatar
    811 posts

    Posted 14 Oct 2014 Link to this post

    Hello Dimitar,

    Both tap and getPropertyValue commands support views and subclasses of UIView. Since UIAlertView inherits UIView, you should be able to automate it with the Mobile Testing framework. However, because you are targeting buttons inside the UIAlertView, you should probably use chained queries as explained here.

    Regards,
    Martin
    Telerik
     
    Test your Android and iOS apps against any device or browser with Telerik Mobile Testing. Part of the Telerik Platform.
     
  3. Dimitar
    Dimitar avatar
    3 posts
    Member since:
    Aug 2012

    Posted 14 Oct 2014 Link to this post

    Hi Martin,

    Thanks for the response. Can you provide me an example how I can query an UIAlertView? Looks impossible for me with the current version of Mobile Testing framework. Probably that's because UIAlertView is rendered in a different UIWindow. If to find queried object 
    Mobile Testing framework enumerates all the views of app's main window (the UIApplicationDelegate's window property) - that's not gonna work for UIAlertView.

    Cheers,
    Dimitar



  4. Answer
    Martin
    Admin
    Martin avatar
    811 posts

    Posted 14 Oct 2014 Link to this post

    Hello DImitar,

    I have made an additional check with our development team and it seems that we currently don't support UIAlertView. Actually it was supported some time ago, but then Apple moved UIAlertView out-of-process, and since our plugin runs within the application process, we are unable to access it currently without more research.

    The issue is logged into our backlog and will be resolved in future releases of the product. I have also contacted out documentation team so that it is duly documented in our known issues section.

    Regards,
    Martin
    Telerik
     
    Test your Android and iOS apps against any device or browser with Telerik Mobile Testing. Part of the Telerik Platform.
     
  5. Dimitar
    Dimitar avatar
    3 posts
    Member since:
    Aug 2012

    Posted 14 Oct 2014 Link to this post

    Thanks for the response Martin. It would be great to have that fixed. Your product looks really nice. Another great feature will be to have a tool for building queries, now the QA needs to have deep knowledge of app's screens view hierarchy.

    Best,
    Dimitar
  6. Martin
    Admin
    Martin avatar
    811 posts

    Posted 14 Oct 2014 Link to this post

    Hello Dimitar,

    Thanks for your feedback. I would like to inform you that the query building tool feature is also logged into our backlog and I expect that we start working on it the near future. I agree that it will be a great addition to the product and would like to assure you that our developers will give their best to implement it as soon as possible.

    Regards,
    Martin
    Telerik
     
    Test your Android and iOS apps against any device or browser with Telerik Mobile Testing. Part of the Telerik Platform.
     
Back to Top