spec/fixtures/form.html in xpath-0.1.3 vs spec/fixtures/form.html in xpath-0.1.4
- old
+ new
@@ -23,30 +23,42 @@
<p>
<input type="submit" id="submit-with-id" data="id-submit" value="Has ID"/>
<input type="submit" value="submit-with-value" data="value-submit"/>
<input type="submit" value="not exact value submit" data="not-exact-value-submit"/>
<input type="submit" value="exact value submit" data="exact-value-submit"/>
+ <input type="submit" title="My submit title" value="submit-with-title" data="title-submit">
+ <input type="submit" title="Exact submit title" value="exact title submit" data="exact-title-submit">
+ <input type="submit" title="Not Exact submit title" value="exact title submit" data="not-exact-title-submit">
<input type="button" id="button-with-id" data="id-button" value="Has ID"/>
<input type="button" value="button-with-value" data="value-button"/>
<input type="button" value="not exact value button" data="not-exact-value-button"/>
<input type="button" value="exact value button" data="exact-value-button"/>
+ <input type="button" title="My button title" value="button-with-title" data="title-button">
+ <input type="button" title="Not Exact button title" value="not exact title button" data="not-exact-title-button">
+ <input type="button" title="Exact button title" value="exact title button" data="exact-title-button">
<input type="image" id="imgbut-with-id" data="id-imgbut" value="Has ID"/>
<input type="image" value="imgbut-with-value" data="value-imgbut"/>
<input type="image" alt="imgbut-with-alt" data="alt-imgbut"/>
<input type="image" value="not exact value imgbut" data="not-exact-value-imgbut"/>
<input type="image" value="exact value imgbut" data="exact-value-imgbut"/>
+ <input type="image" title="My imgbut title" value="imgbut-with-title" data="title-imgbut">
+ <input type="image" title="Not Exact imgbut title" value="not exact title imgbut" data="not-exact-title-imgbut">
+ <input type="image" title="Exact imgbut title" value="exact title imgbut" data="exact-title-imgbut">
<button id="btag-with-id" data="id-btag" value="Has ID"/>
<button value="btag-with-value" data="value-btag"/>
<button value="not exact value btag" data="not-exact-value-btag"/>
<button value="exact value btag" data="exact-value-btag"/>
<button data="text-btag">btag-with-text</button>
<button data="not-exact-text-btag">not exact text btag</button>
<button data="exact-text-btag">exact text btag</button>
+ <button title="My btag title" data="title-btag">btag-with-title</button>
+ <button title="Not Exact btag title" data="not-exact-title-btag">not exact title btag</button>
+ <button title="Exact btag title" data="exact-title-btag">exact title btag</button>
<button data="btag-with-whitespace"> My
whitespaced
button</button>
@@ -81,6 +93,54 @@
<span>nested whitespace</span>
</td>
<td>I don't</td>
</tr>
</table>
+</p>
+
+<p>
+ <h2>Fields</h2>
+
+ <h4>With id</h4>
+ <input id="input-with-id" value="correct-value" data="input-with-id-data"/>
+ <input type="text" id="input-text-with-id" data="input-text-with-id-data"/>
+ <input type="password" id="input-password-with-id" data="input-password-with-id-data"/>
+ <input type="custom" id="input-custom-with-id" data="input-custom-with-id-data"/>
+ <textarea id="textarea-with-id" data="textarea-with-id-data">Correct value</textarea>
+ <select id="select-with-id" data="select-with-id-data"></select>
+ <input type="submit" id="input-submit-with-id" data="input-submit-with-id-data"/>
+ <input type="image" id="input-image-with-id" data="input-image-with-id-data"/>
+ <input type="hidden" id="input-hidden-with-id" data="input-hidden-with-id-data"/>
+
+ <h4>With name</h4>
+ <input name="input-with-name" data="input-with-name-data"/>
+ <input type="text" name="input-text-with-name" data="input-text-with-name-data"/>
+ <input type="password" name="input-password-with-name" data="input-password-with-name-data"/>
+ <input type="custom" name="input-custom-with-name" data="input-custom-with-name-data"/>
+ <textarea name="textarea-with-name" data="textarea-with-name-data"></textarea>
+ <select name="select-with-name" data="select-with-name-data"></select>
+ <input type="submit" name="input-submit-with-name" data="input-submit-with-name-data"/>
+ <input type="image" name="input-image-with-name" data="input-image-with-name-data"/>
+ <input type="hidden" name="input-hidden-with-name" data="input-hidden-with-name-data"/>
+
+ <h4>With referenced label</h4>
+ <label for="input-with-label">Input with label</label><input id="input-with-label" data="input-with-label-data"/>
+ <label for="input-text-with-label">Input text with label</label><input type="text" id="input-text-with-label" data="input-text-with-label-data"/>
+ <label for="input-password-with-label">Input password with label</label><input type="password" id="input-password-with-label" data="input-password-with-label-data"/>
+ <label for="input-custom-with-label">Input custom with label</label><input type="custom" id="input-custom-with-label" data="input-custom-with-label-data"/>
+ <label for="textarea-with-label">Textarea with label</label><textarea id="textarea-with-label" data="textarea-with-label-data"></textarea>
+ <label for="select-with-label">Select with label</label><select id="select-with-label" data="select-with-label-data"></select>
+ <label for="input-submit-with-label">Input submit with label</label><input type="submit" id="input-submit-with-label" data="input-submit-with-label-data"/>
+ <label for="input-image-with-label">Input image with label</label><input type="image" id="input-image-with-label" data="input-image-with-label-data"/>
+ <label for="input-hidden-with-label">Input hidden with label</label><input type="hidden" id="input-hidden-with-label" data="input-hidden-with-label-data"/>
+
+ <h4>With parent label</h4>
+ <label>Input with parent label<input data="input-with-parent-label-data"/></label>
+ <label>Input text with parent label<input type="text" data="input-text-with-parent-label-data"/></label>
+ <label>Input password with parent label<input type="password" data="input-password-with-parent-label-data"/></label>
+ <label>Input custom with parent label<input type="custom" data="input-custom-with-parent-label-data"/></label>
+ <label>Textarea with parent label<textarea data="textarea-with-parent-label-data"></textarea></label>
+ <label>Select with parent label<select data="select-with-parent-label-data"></select></label>
+ <label>Input submit with parent label<input type="submit" data="input-submit-with-parent-label-data"/></label>
+ <label>Input image with parent label<input type="image" data="input-image-with-parent-label-data"/></label>
+ <label>Input hidden with parent label<input type="hidden" data="input-hidden-with-parent-label-data"/></label>
</p>