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
>> while klass = klass.superclass
>> return true if klass == 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/
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to