ERP5TypeFunctionalTestCase: take screenshot and dump the page on error

This is not really for errors during the test itself, but for errors when
ERP5TypeFunctionalTestCase manipulates browser to execute selenium test.
10 jobs for feat/seleniumserver
in 0 seconds, using 0 compute credits, and was queued for 0 seconds