thoughtbot/capybara-webkit — Issue #290: Support: Interacting with pop-out/roll-over menus
Author: mattconnolly
Created: 2012-03-09 06:00:23+00:00
State: open

Whether or not pop-out menus are a good idea aside, we have them. I'm stuck clicking items in these menus because they are not visible until the mouse rolls over them. My cucumber steps fail with:

```
Capybara::Driver::Webkit::Node::ElementNotDisplayedError: This element is not visible so it may not be interacted with
(eval):2:in `click_link'
```

I notice that Capybara has an option `ignore_hidden_elements`. Would it be useful for the `check_visibility` option to allow these clicks if `ignore_hidden_elements = false`?

Or alternatively, is there another way to show the menu so that it can be interacted with, like inject some javascript to set the css on all menus "display:block" so that they're visible?