angrykoala / wendigo

A proper monster for front-end automated testing

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Investigate exposeFunction

angrykoala opened this issue · comments

Instead of wendigo custom loader of utils, exposeFunction may replace the currently used injectionScripts.

A plus is that libraries (e.g. lodash->isRegexp) seem to work using this method

https://github.com/puppeteer/puppeteer/blob/main/docs/api.md#pageexposefunctionname-puppeteerfunction