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'],
In reply to Re^2: How to control two tabs at the same time with WWW::Mechanize::Firefox
by mascip
in thread How to control two tabs at the same time with WWW::Mechanize::Firefox
by mascip
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |