-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Labels
bugSomething isn't workingSomething isn't working
Description
I am frequently running into this error when using the Capybara Playwright driver to click on elements:
Playwright::Error: Element is not attached to the DOM
It seems more likely to occur when a lot of actions are being taken on the page.
Sample code that causes it:
select_input = page.find("[test-id='someTestId']")
select_input.click
option = select_input.find('li[role="option"]', text: 'foo')
option.click # This will trigger the errorThe select input and option all exist on the page 100% and are all clickable.
Is there any way to prevent this error or any viable workarounds?
The suggested workarounds found when googling don't seem to work/apply as we're working through Capybara here.
diegomichel, adamreisnz, jdmcleod and calmyournerves
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working