Unable to get visible cells only from table view In iOS(iPhone X)

Hi…Actually I am trying to fetch only those cell values which are visible at a time and m using this for that.

xpath = “//XCUIElementTypeStaticText[@name=“NAME_LABEL”][@visible=‘true’]”

But it is not working.

Appium- 1.8.1
Java- 1.8.0_171
Xcode- 9.4
iOS- 11.2.1