title: Ruby on Rails: Xpath: Could not retrieve XPath
body: <p>This is the error I get:</p>
  
  <pre><code>NativeException: java.lang.RuntimeException: Could not retrieve XPath &gt;//id[@class='open'//@id='status_open']&lt; on HtmlPage(http://cucumber.test.com/proposals/view-me/edit#)@17325460 (Culerity::CulerityException)
  </code></pre>
  
  <p>This is my Cucumber command</p>
  
  <pre><code>Then the "li" tag with the id "status_open" should have the class "open"
  </code></pre>
  
  <p>This is my step definition</p>
  
  <pre><code>Then /^the "([^\"]*)" tag with the id "([^\"]*)" should have the class "([^\"]*)"$/ do |tag,id,clas|
  
  
  if page.respond_to? :should
        page.should have_xpath("//#{tag}[@class='#{clas}',@id='#{id}']")
      else
        assert page.have_xpath("//#{tag}[@class='#{clas}',@id='#{id}']")
      end
  end
  </code></pre>
  
  <p>and here is the HTML:</p>
  
  <pre><code>&lt;li class="open" id="status_open"&gt;
                        &lt;a href="#"&gt;
                          Open
                        &lt;/a&gt;
                      &lt;/li&gt;
  </code></pre>
  
  <p>it seems like it should work, based on this tutoraial:</p>
  
  <pre><code>http://www.w3schools.com/xpath/xpath_syntax.asp
  </code></pre>
  
  <p>Ideas?</p>