Thanks Dylan - the require 'watir/ie' statement was the missing part
of the puzzle - I can add a method now. Here's a working example:
require 'watir'
require 'watir/ie'
class Watir::Radio
def myMethod
"this is my method"
end
end
@browser = Watir::Browser.new
@browser.goto("http://www.treeview.net/tv/demo/demoCheckbox.html")
@browser.frame(:name, "treeframe").link(:href, /clickOnNode\
("5"\)/).click
puts @browser.frame(:name, "treeframe").radio(:id, "RD1").isSet?
puts @browser.frame(:name, "treeframe").radio(:id, "RD1").myMethod
The isSet? and dummy method myMethod are working as expected. Thanks
for your help.
Regards,
John
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---