Unable to trigger mouse event in Capybara test

后端 未结 6 1418
Happy的楠姐
Happy的楠姐 2021-02-12 13:15

I am using Capybara 1.0.0, and I have a link in my page which gets visible when mouse hover over that block. So I want to trigger mouse over in test so that I can click that hid

6条回答
  •  佛祖请我去吃肉
    2021-02-12 13:24

    This commit added the hover method. It has the advantage of including css hover effects on elements.

    Usage:

    find('#posts .post .comments .comment').hover
    

提交回复
热议问题