# How do I find the location of an element in Shoes

**URL:** <https://www.ruby-forum.com/t/how-do-i-find-the-location-of-an-element-in-shoes/152826>\
**Category:** Ruby\
**Created:** [November 7, 2008, 8:25pm UTC](https://www.ruby-forum.com/t/how-do-i-find-the-location-of-an-element-in-shoes/152826 "2008-11-07T20:25:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jayson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/aeb1de/32.png) [@jayson](https://www.ruby-forum.com/u/jayson)\
**Post date:** [November 7, 2008, 8:25pm UTC](https://www.ruby-forum.com/t/how-do-i-find-the-location-of-an-element-in-shoes/152826/1 "2008-11-07T20:25:52Z")

</div>

How do I find the location of an element in Shoes

I thought that x=shape.left would give me the location, but it always  
returns 0.
