in reply to Testing javascript on Dancer2 psgi sites

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!


The way forward always starts with a minimal test.
  • Comment on Re: Testing javascript on Dancer2 psgi sites