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