http://www.perlmonks.org?node_id=951038

mascip has asked for the wisdom of the Perl Monks concerning the following question:

Hello,
i'm new here, and quite new to Perl, WWW::Mechanize and WWW::Mechanize::Firefox.
I'm playing moving around in a page with HTML::TreeBuilder. I get references of the elements (HTML::Element) i need, that all ok.

What i need then, is to retrieve the position of an element on my screen. So, how can i build this get_position_of() function :

my ( $x, $y ) = get_position_of( $my_html_element );

Thank you :o)