This PR adds a workaround for an issue where puppeteer throws an error when finding an element specified by click or focus options if storycap is used with React 18.
I was not able to dig into a root cause for the issue but found that running an empty function within a page prevents the issue with no side effects.
Though we are using an old version of puppeteer-core due to #545, the issue is still reproduced even if puppeteer-core gets updated to its latest.
Closes #712.
This PR adds a workaround for an issue where puppeteer throws an error when finding an element specified by
click
orfocus
options if storycap is used with React 18.I was not able to dig into a root cause for the issue but found that running an empty function within a page prevents the issue with no side effects.
Though we are using an old version of puppeteer-core due to #545, the issue is still reproduced even if puppeteer-core gets updated to its latest.