Accessibility elements are not visible in automation testing

I have a table view with a custom cell that I set accessibility elements for its components. All of the accessibility IDs are appearing correctly in the Xcode's Accessibility Inspector, as you see: 

However, when it comes down to automation testing, none of the accessibility IDs are visible and don't appear in the XML. It's like this:

What's the reason for causing this issue?

Accessibility elements are not visible in automation testing
 
 
Q