I'm using similar construction:
<div class="edit" style="visibility: hidden;">
<a href="some_path" id="edit_item">Edit</a>
</div>
Then I hover mouse this element become visible, but I have difficult to interact this actions with tests(using cucumber, capybara, selenium).
I get an error
Element is not currently visible and so may not be interacted with (Selenium::WebDriver::Error::ElementNotDisplayedError)
I tried to use Element.trigger(event) with mouseover, but it doesn't work in selenium... How I can interact with this element?