[Wtr-general] Cannot click on HTML button
Dhrubojyoti Biswas
dhrubojyotib at gmail.com
Fri Dec 29 06:09:27 EST 2006
Hi,
Problem 1:
Watir doesn't seem to recognize buttons that are encapsulated inside label
tags. As an example consider the following tag
<label for="taskCombo">
<button type="submit" style="height:22;" alt="Go" title="Go">Go</button>
</label>
WATIR is not able to recognize and click on this button.
ie.buttons.length returns nothing for a page which contains such controls.
ie.button(:name, 'Go').click throws an 'assert_exists'
(Watir::Exception::UnknownObjectException)
Some help on how to click such controls would be really nice.
Problem 2:
If there are controls containing the same name on a page WATIR cannot
distinguish between them. I had thought of caching up such controls in an
Array (Collection) and then iterate over them. But most of the Watir classes
including Watir::SelectList, Watir::Button do not expose methods through
which the names of these controls can be retrieved.
Can such methods be supported?
--
Dhruv
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/wtr-general/attachments/20061229/a42f0e8c/attachment.html
More information about the Wtr-general
mailing list