This is a migrated thread and some comments may be shown as answers.

Can't get UIAlertView properties (iOS)

5 Answers 42 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Dimitar
Top achievements
Rank 1
Dimitar asked on 13 Oct 2014, 05:52 PM
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

5 Answers, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 14 Oct 2014, 07:08 AM
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.
 
0
Dimitar
Top achievements
Rank 1
answered on 14 Oct 2014, 08:21 AM
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



0
Accepted
Martin
Telerik team
answered on 14 Oct 2014, 03:38 PM
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.
 
0
Dimitar
Top achievements
Rank 1
answered on 14 Oct 2014, 03:49 PM
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
0
Martin
Telerik team
answered on 14 Oct 2014, 04:19 PM
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.
 
Tags
General Discussions
Asked by
Dimitar
Top achievements
Rank 1
Answers by
Martin
Telerik team
Dimitar
Top achievements
Rank 1
Share this question
or