|
|
| Don't ask to ask, just ask | |
| PerlMonks |
Re^8: WWW::Mechanize - how to get the position of an element on my screen?by mascip (Monk) |
| on Feb 01, 2012 at 23:24 UTC ( #951315=note: print w/ replies, xml ) | Need Help?? |
|
This morning I realized how stupid that was : i'm creating my Tree from the HTML content only, while the object position can be influenced by the Javascript (And other stuff? And something that manages the display layout i guess), which WWW::Mechanize::Firefox "takes into account" (simple words for beginner understanding). I read it several times, i knew it but forgot it while doing this first test. I guess i hoped there could be a (bijective) correspondence between the two. And i made this mistake also because i was doing this first test on an example where there is no Javascript at all.
Next step for me : learn about XPath.
Thanks again for helping me understand :o)
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||