Skip to content

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

Open
@aaronjensen

Description

@aaronjensen

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions