Does Xpath function last() work with Webviews with Appium?

Hi,

We are working on a hybrid app and for a certain page, we need to make use of xpath function last(), this identifies correct element when used against webpage version of mobile screen, but does not work on actual mobile screen, giving error “an element could not be found with search parameters”

Has anyone used this function with mobile elements?

Thanks,
Sujata