Coordinates are not correct and need to retrieve bounds attribute

Coordinates retrieved by by get location are relative to web view where as the element coordinates in app are different. It will be good if we are able to retrieve the bounds attribute of the element.
Tried with creating offset for the elements and it is changing for every element.