Sha256: 38c6a1490a30c1be49d2e2505ad8f801bbedb59d55c15b8373535d925e09aa09

Contents?: true

Size: 426 Bytes

Versions: 15

Compression:

Stored size: 426 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

15 entries across 15 versions & 2 rubygems

Version Path
adva-0.3.2 test/webrat/spec/public/locators/field_by_xpath_spec.rb
adva-0.3.1 test/webrat/spec/public/locators/field_by_xpath_spec.rb
adva-0.3.0 test/webrat/spec/public/locators/field_by_xpath_spec.rb
adva-0.2.4 test/webrat/spec/public/locators/field_by_xpath_spec.rb
adva-0.2.3 test/webrat/spec/public/locators/field_by_xpath_spec.rb
adva-0.2.2 test/webrat/spec/public/locators/field_by_xpath_spec.rb
adva-0.2.1 test/webrat/spec/public/locators/field_by_xpath_spec.rb
adva-0.2.0 test/webrat/spec/public/locators/field_by_xpath_spec.rb
adva-0.1.4 test/webrat/spec/public/locators/field_by_xpath_spec.rb
adva-0.1.3 test/webrat/spec/public/locators/field_by_xpath_spec.rb
adva-0.1.2 test/webrat/spec/public/locators/field_by_xpath_spec.rb
adva-0.1.1 test/webrat/spec/public/locators/field_by_xpath_spec.rb
adva-0.1.0 test/webrat/spec/public/locators/field_by_xpath_spec.rb
adva-0.0.1 test/webrat/spec/public/locators/field_by_xpath_spec.rb
integrity-0.1.9 vendor/webrat/spec/public/locators/field_by_xpath_spec.rb