Sha256: 7f317073ff70769f450af3c7d179989eef467ba40fd062d00687fcea44d3de29

Contents?: true

Size: 441 Bytes

Versions: 1

Compression:

Stored size: 441 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + "/../../spec_helper")


describe "field_by_xpath" do
  it "should work" do
    with_html <<-HTML
      <html>
        <form>
        <label for="element_42">The Label</label>
        <input type="text" id="element_42">
        </form>
      </html>
    HTML

    field = field_by_xpath(".//input")
    field.should_not be_nil
    field.id.should == "element_42"
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mkuklis-webrat-0.6.rc1 spec/public/locators/field_by_xpath_spec.rb