# Python how to get count of UIATableCell in iOS real device

**URL:** <https://discuss.appium.io/t/python-how-to-get-count-of-uiatablecell-in-ios-real-device/4797>\
**Category:** Issues/Bugs\
**Created:** [June 18, 2015, 6:17am UTC](https://discuss.appium.io/t/python-how-to-get-count-of-uiatablecell-in-ios-real-device/4797 "2015-06-18T06:17:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![panxi2015](https://discuss.appium.io/letter_avatar_proxy/v4/letter/p/e56c9b/32.png) [@panxi2015](https://discuss.appium.io/u/panxi2015)\
**Post date:** [June 18, 2015, 6:17am UTC](https://discuss.appium.io/t/python-how-to-get-count-of-uiatablecell-in-ios-real-device/4797/1 "2015-06-18T06:17:06Z")

</div>

Hi Friends,

I am trying to get count/size of ‘UIATableCell’ from ‘UIATableView’ in iOS real device.  
Here’s what I do in python.  
1.cells= driver.find\_element\_by\_class\_name(“UIATableCell”).size  
print cells  
the result:  
weight and Hight  
2.cells= driver.find\_element\_by\_class\_name(“UIATableCell”).size()  
print cells  
the result:  
null  
Can anyone help me …

---

<div class="post-metadata">

**Author:** ![shermaneric](https://discuss.appium.io/letter_avatar_proxy/v4/letter/s/258eb7/32.png) [@shermaneric](https://discuss.appium.io/u/shermaneric)\
**Post date:** [June 18, 2015, 3:51pm UTC](https://discuss.appium.io/t/python-how-to-get-count-of-uiatablecell-in-ios-real-device/4797/2 "2015-06-18T15:51:38Z")

</div>

Hi @panixi2015:

So what you have will not work. You are saying “give me the size of a given cell” which will either be 1 or null.

I use ruby, but the same identifier converting in your syntax should work:

```
   @courseOutlineList = {uiautomation: ".scrollViews()[1].tableViews()[0].cells()"}

```

This is saying: " give me all the cells in the first table view within the 2nd scroll view (Ui automation is 0 based)"

Then find\_elements(@courseOutlineList).size should work ( again convert for your syntax )

Hope this helps! Feel free to reply with follow-up questions!

Eric
