in reply to Re: How to control two tabs at the same time with WWW::Mechanize::Firefox
in thread How to control two tabs at the same time with WWW::Mechanize::Firefox
Thank you !
I have one last small question (shall i ask it in another node ?) :
When i load my pages, it takes some time. Most of the time, i don't need to wait for the images to be loaded in the page, just the HTML content, and sometimes the DOM.
I found an imperfect solution, and am looking for the a better one.
At the moment i use
in the WWW::Mechanize::Firefox constructor, and then wait 1 second. But sometimes, it is not enough. Sometimes, 5 seconds doesn't seem to be enough either.synchronize => 0,
I think i need to use the "events" parameter of the WWW:Mechanize::Firefox contructor. For example
(as 'DOMContentLoaded' doesn't wait for the images to be loaded, contrarely to 'load').events => ['DOMContentLoaded'],
I am sorry, i have read on this subject several time in the past, and have searched again today. I am making you repeat. The best solution i read seems to be
but it seems fairly slow, so i thought...i can try to ask again, maybe i missed something.events => ['DOMContentLoaded'],
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How to control two tabs at the same time with WWW::Mechanize::Firefox
by Corion (Patriarch) on Mar 11, 2012 at 20:28 UTC | |
by mascip (Pilgrim) on Mar 11, 2012 at 21:22 UTC | |
by Corion (Patriarch) on Mar 11, 2012 at 22:07 UTC | |
by mascip (Pilgrim) on Mar 12, 2012 at 00:00 UTC | |
by mascip (Pilgrim) on Mar 12, 2012 at 12:02 UTC |