WWW::Mechanize does not handle JavaScript. Other modules do, e.g. WWW::Mechanize::Firefox. Personally I use Selenium::Remote::Driver with Selenium and headless Firefox.
Otherwise, you can test your JavaScript directly with JavaScript testing framework such as Cucumber, Jest, etc.
Hope this helps!
In reply to Re: Testing javascript on Dancer2 psgi sites
by 1nickt
in thread Testing javascript on Dancer2 psgi sites
by nysus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |