ui_test_core: fix verifyImageMatchSnapshot for pages using css fonts

We are using html2canvas to render the page in a canvas element, but
because the canvas element was created in the selenium runner frame (and
not the tested frame), if some extra css fonts were loaded in the custom
page they did not apply.

To make the snapshot use proper fonts, we create the canvas in the
tested page.
2 jobs for fix/selenium-extensions in 0 seconds
Status Job ID Name Coverage
  External
passed ERP5.CodingStyleTest-TestRunner2

01:10:06

passed ERP5.UnitTest-TestRunner2

02:25:08