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

Race condition leading to Argument should belong to the same JavaScript world as target object #233

Open
aaronjensen opened this issue Apr 26, 2023 · 2 comments

Comments

@aaronjensen
Copy link

aaronjensen commented Apr 26, 2023

We are occasionally seeing this error come from Ferrum:

Argument should belong to the same JavaScript world as target object

From what I can tell, it may have to do with how cuprite handles finding within elements. If the page navigates in the middle of a find (in between the time when the within is resolved in Ruby to when the find is done) then the crash occurs.

page.within(:css, ".some-class") do
  page.find(:css, ".some-other-class")
end
@emilkarl
Copy link

emilkarl commented Feb 6, 2024

Did you solve this?

@aaronjensen
Copy link
Author

No, we have tended to avoid within for this reason. I haven't looked into it recently as a result.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants