jnicklas/capybara — Issue #657: find("#foo").visible? doesn't work with css class
Author: fourcolors
Created: 2012-03-03 00:04:28+00:00
State: open

Hi

I tried to look through the other issues to find an answer to this but couldn't so am thinking it might be a bug. Here is the "bug" (I think) that I found.

I have a link that when clicked on opens a pop up box. I'm hiding the pop up box with a class of 'hide'. Something like

```html

Bar bar bar...

```

When I create a test that looks like

```ruby
find("#my_pop_up").visible?.should_not be_true
```

It fails. Now I can fix this problem by adding style="display:none" inline, however the css hide (which just does 'display:none') doesn't work.

I've tried this on different applications with the same problem so I'm guessing either 1) It's a bug 2) I don't understand what .visible? is really suppose to do.

Hope this helps.