Unable to trigger mouse event in Capybara test

后端 未结 6 1404
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:42

    For visibility problems sometimes it helps to change window size for poltergeist. I've done it in spec_helper.rb

      Capybara.register_driver :poltergeist do |app|
        Capybara::Poltergeist::Driver.new(app, window_size: [1280, 600])
      end 
    

提交回复
热议问题