Drew
unread,Dec 12, 2022, 9:01:49 AM12/12/22Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message as abuse
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Capybara
I have a requirement that when dragging certain elements, a mask will appear over the top of a section of the screen, which is a valid drop target. However, it is not visible until you start dragging, so when I tried `page.find("#reset_drop_mask")` it failed since it could not find the element in question.
I have worked around this, temporarily, by forcing the mask visible even though the drag has not started, in order to test that once you drag it onto the mask, it does the job correctly. I've also tested correctly that the mask is *not* visible before I would have forced it.
So the only real requirement that I cannot test is that the mask *becomes* visible once the drag starts. What would be the best way to do this?