Element visible with UI inspector but not with driver

Hi,

I am trying to find text value for all elements on the visible page in iOS device. I am using capability
{browserName: "safari", safariInitialUrl: "http://www.google.com", ...} (Posting only relevant capabilities)

I use following xpath to find elements //*[@name]

When I run this xpath on UI inspector I am able to retrieve all the text elements on the page
But when I do driver.find_all_elements("//*[@name]") I do not find all the elements.

I am not sure what is missing when it comes to finding elements using driver methods.

Can someone point out what is the difference between UI inspector and using driver methods

Regards