Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a workaround for an issue where puppeteer fails to find a matching element #770

Merged
merged 2 commits into from
Jun 14, 2023

Conversation

nodaguti
Copy link

Closes #712.

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.

@nodaguti
Copy link
Author

@Quramy
I would be grateful if you would have time to look into this PR. Thank you in advance.

@Quramy Quramy merged commit 1b864d2 into reg-viz:master Jun 14, 2023
@nodaguti
Copy link
Author

Thanks!

@nodaguti nodaguti deleted the add-workaround-for-focus-issue branch June 14, 2023 11:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants