Watir:Buttons is supposed to return all buttons on a page.
With the next tested page
<html>
<title>some title</title>
<body>
<br>
<button id="1" value="first button">1st button</button>
some text
<button id="2" value="second button">2nd button</button>
<input type="button" id="6" value="6th button">
</body>
</html>
using this script:
require 'watir'
test_site = 'http://localhost/test.html'
ie = Watir::IE.new
ie.goto(test_site)
ie.buttons.each do |a_button|
puts a_button.value
end
I get only "1st button" in output.
Do I do something wrong or this is a bug?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Watir General" group.
To post to this group, send email to [email protected]
Before posting, please read the following guidelines:
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---