Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Verify text color in iphone uiautomation

I am testing an app with ios uiautomation and I need to verify the color of some static text controls. Is this possible? I didn't see any methods or properties that allow access to text styling.

like image 886
Darrel Avatar asked Jun 20 '11 19:06

Darrel


1 Answers

I don't know how much you have already implemented using UI Automation, but if you have not yet invested too much I would strongly recommend using FoneMonkey instead. It has an excellent script recording facility, outputs Objective C/SenTestCase scripts, and the scripts have full access to the internal of your program so that you can test color or any other property you like. It is easily extensible, and I have also generally found it to be much less of a pain to work with than UI Automation.

like image 188
edsko Avatar answered Nov 04 '22 00:11

edsko