views:

18

answers:

1

Hi,

I'm writing some automation .js file, and I need to tap one of my accessoryButton from one cell.

How can I send the tap message to it ?

This is a custom cell, but the accessoryButton is added by iOS, not by me, and I don't know wich name it has.

Also in the docs I couldn't find anything ...

I have the cell referenced correcly as I can change the textField value for example.

Thanks in advance,

regards

A: 

I would take a look at the buttons property on your UIATableCell. That should give you the buttons in your cell and you can probably get to the accessoryButton from there. UIATableCell does not seem to have a specific property for the accessoryButton (cf. here).

Source: Apple UIAElement Documentation

MattLeff
thanks, time to read ! regards
mongeta
I'm having problems iterating through the buttons, I've opened a new question about it, thanks. http://stackoverflow.com/questions/3975367/instruments-automation-iterate-for-all-buttons
mongeta