good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
WWW::Mechanize::Firefox Script Hangs after an Xpath clickby Matt™ (Acolyte) |
on Nov 21, 2012 at 05:31 UTC ( [id://1004838]=perlquestion: print w/replies, xml ) | Need Help?? |
Matt™ has asked for the wisdom of the Perl Monks concerning the following question: Hi Monks, I am facing an issue with www::mechanize::firefox Click. I am clicking a button but it is hanging there. and it is not processing any next codes. Can you pls check the below codes pls,
Here it is hanging at the first click and not doing any next process. Here it stuck on $mech->click({ xpath => '//span[@class="paginate_button"]' }, { xpath => '//*[contains(text(),"2")]' }); and not coming out of that. I tried giving timeout also, but it is not taking. Is there any other way for this? The Url I tried on is http://psacareers.gtisolutions.co.uk/VacancyPosting/Search?SearchText=&VacancyPostingFramework=&VacancyBusinessArea=&VacancyRegion=&submit=Search. Thanks In advance Monks. I just want the script to come out of that first click and do the rest process. Is there any other way to give timeout? I mean in www::Mechanize we can give like $mech->timeout(2); (but in www::mech::firefox I think we cant!)Thanks Monks.
Back to
Seekers of Perl Wisdom
|
|