Tapping overlapping control

I have bar at the bottom of screen which contains button in my iOS app.I have table view on screen which contains cell and I tap on cell one by one by scrolling them.sometimes while scrolling table,text which I tap in cell overlaps with bottom bar/one of button on bar.when I tap on that text then button on bar gets tapped and test fails.how do you handle this situation?

Personally I would try scrolling until I see the cell, then scroll once more before trying to interact with it. YMMV.