I think I'm running the latest version of Watir: 1.6.5 rc1 or thereabouts.
Bret Jason wrote: > Hey Brett, > > How is it that you got Watir::Dd, Watir::Dt & Watir::Dl (amongst > others like Watir::Strong) in your list? When I run the same code > these are not returned - wondering if you have custom methods in place > for those, or what I need to do to make sure they are identifiable > elements? > > - Jason > > > On Sep 29, 5:08 am, Bret Pettichord <[email protected]> wrote: > >> On Sep 28, 4:54 am, Željko Filipin <[email protected]> >> wrote: >> >> >>> Do we have a place where all elements (link, image, button...) supported by >>> Watir are listed? >>> >>> Is this list complete? >>> >>> http://wiki.openqa.org/display/WTR/Methods+Supported+by+Element >>> >> I've been trying to keep it up to date >> >> >>> Is there a simple way I could take a look in the code and find which >>> elements Watir supports? >>> I see we have Element class and I suppose all elements inherit it. I have >>> searched Watir code for `< Element` and found a lot of places where it >>> appears. Is there a central location where all elements are collected? >>> >>>> def is_element_subclass?klass >>>> whileklass=klass.superclass >>>> return true ifklass== Watir::Element >>>> end >>>> end >>>> ObjectSpace.each_object(Class){|c| puts c if is_element_subclass?(c)} >>>> >> Watir::HTMLElement >> Watir::Link >> Watir::Image >> Watir::TableCell >> Watir::TableRow >> Watir::TableBody >> Watir::TableBodies >> Watir::Table >> Watir::CheckBox >> Watir::Radio >> Watir::RadioCheckCommon >> Watir::FileField >> Watir::Hidden >> Watir::TextField >> Watir::Button >> Watir::SelectList >> Watir::InputElement >> Watir::Em >> Watir::Strong >> Watir::Dd >> Watir::Dt >> Watir::Dl >> Watir::H6 >> Watir::H5 >> Watir::H4 >> Watir::H3 >> Watir::H2 >> Watir::H1 >> Watir::Ul >> Watir::Li >> Watir::Label >> Watir::Area >> Watir::Map >> Watir::Span >> Watir::Div >> Watir::P >> Watir::Pre >> Watir::NonControlElement >> Watir::Form >> >> >> >> >>> Željko >>> --http://watirpodcast.com/ >>> > > > -- Bret Pettichord Lead Developer, Watir, www.watir.com Blog, www.io.com/~wazmo/blog Twitter, www.twitter.com/bpettichord --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
