What is wrong with my path to select the following:
<label class="form-control-label" for="profile_form_state">State</label>
Xpath:
xpath = '//label[ends-with(@for, "_state")]'
I am using rspec and capybara
expect(rendered).to have_xpath(xpath)
Error:
xmlXPathCompOpEval: function ends-with not found