jnicklas/capybara — Issue #542: Capybara::Node::Element equals (==) operator
Author: nikosd
Created: 2011-11-15 11:32:11+00:00
State: open

Given the following HTML :

```HTML

Contents

```

Then the following should ideally be true :

```ruby
first('#foo') == first('.bar')
```

This would allow also the following test helper to work

```ruby
assert_equal node_element_one, node_element_two
```

Is there any particular reason that this is currently not supported, is it because or technical limitations or is it just because no-one actually thought of it before? Would you like a failing test / feature scenario to work against?