Sha256: 2bbaf99e015fa02d3776688ad4bbb10fa546b114d0fcc94ed686835f41d46327

Contents?: true

Size: 422 Bytes

Versions: 60

Compression:

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

60 entries across 60 versions & 23 rubygems

Version Path
davidtrogers-webrat-0.4.4.2 spec/public/locators/field_by_xpath_spec.rb
diabolo-webrat-0.4.4.1 spec/public/locators/field_by_xpath_spec.rb
diabolo-webrat-0.4.4.2 spec/public/locators/field_by_xpath_spec.rb
diabolo-webrat-0.4.4 spec/public/locators/field_by_xpath_spec.rb
diabolo-webrat-0.5.1 spec/public/locators/field_by_xpath_spec.rb
dstrelau-webrat-0.5.1 spec/public/locators/field_by_xpath_spec.rb
emipair-webrat-0.0.1 spec/public/locators/field_by_xpath_spec.rb
hardbap-webrat-0.5.1 spec/public/locators/field_by_xpath_spec.rb
hardbap-webrat-0.5.2 spec/public/locators/field_by_xpath_spec.rb
raldred-webrat-0.4.4.2 spec/public/locators/field_by_xpath_spec.rb
sr-webrat-0.4.4.1 spec/public/locators/field_by_xpath_spec.rb
winton-sum-0.1.0 vendor/webrat/spec/public/locators/field_by_xpath_spec.rb
winton-sum-0.1.1 vendor/webrat/spec/public/locators/field_by_xpath_spec.rb
radiant-1.0.0 ruby-debug/ruby/1.8/gems/webrat-0.7.3/spec/public/locators/field_by_xpath_spec.rb
indirect-webrat-0.7.5 spec/public/locators/field_by_xpath_spec.rb
indirect-webrat-0.7.4 spec/public/locators/field_by_xpath_spec.rb
webrat-0.7.3 spec/public/locators/field_by_xpath_spec.rb
jbd-webrat-0.7.2.rails3 spec/public/locators/field_by_xpath_spec.rb
webrat-0.7.2 spec/public/locators/field_by_xpath_spec.rb
webrat-0.7.2.beta.2 spec/public/locators/field_by_xpath_spec.rb