Module: Arachni::Element

Defined in:
lib/arachni/element/capabilities/refreshable.rb,
lib/arachni/element/dom.rb,
lib/arachni/element/xml.rb,
lib/arachni/element/base.rb,
lib/arachni/element/body.rb,
lib/arachni/element/form.rb,
lib/arachni/element/json.rb,
lib/arachni/element/link.rb,
lib/arachni/element/path.rb,
lib/arachni/element/cookie.rb,
lib/arachni/element/header.rb,
lib/arachni/element/server.rb,
lib/arachni/element/ui_form.rb,
lib/arachni/element/form/dom.rb,
lib/arachni/element/link/dom.rb,
lib/arachni/element/ui_input.rb,
lib/arachni/element/cookie/dom.rb,
lib/arachni/element/generic_dom.rb,
lib/arachni/element/ui_form/dom.rb,
lib/arachni/element/ui_input/dom.rb,
lib/arachni/element/link_template.rb,
lib/arachni/element/nested_cookie.rb,
lib/arachni/element/link_template/dom.rb,
lib/arachni/element/capabilities/inputtable.rb,
lib/arachni/element/capabilities/submittable.rb,
lib/arachni/element/dom/capabilities/mutable.rb,
lib/arachni/element/xml/capabilities/mutable.rb,
lib/arachni/element/form/capabilities/mutable.rb,
lib/arachni/element/json/capabilities/mutable.rb,
lib/arachni/element/dom/capabilities/auditable.rb,
lib/arachni/element/dom/capabilities/locatable.rb,
lib/arachni/element/form/capabilities/with_dom.rb,
lib/arachni/element/link/capabilities/with_dom.rb,
lib/arachni/element/cookie/capabilities/mutable.rb,
lib/arachni/element/dom/capabilities/inputtable.rb,
lib/arachni/element/form/capabilities/auditable.rb,
lib/arachni/element/header/capabilities/mutable.rb,
lib/arachni/element/link/capabilities/auditable.rb,
lib/arachni/element/xml/capabilities/inputtable.rb,
lib/arachni/element/cookie/capabilities/with_dom.rb,
lib/arachni/element/dom/capabilities/submittable.rb,
lib/arachni/element/json/capabilities/inputtable.rb,
lib/arachni/element/form/capabilities/submittable.rb,
lib/arachni/element/link/capabilities/submittable.rb,
lib/arachni/element/cookie/capabilities/inputtable.rb,
lib/arachni/element/header/capabilities/inputtable.rb,
lib/arachni/element/link/dom/capabilities/submittable.rb,
lib/arachni/element/link_template/capabilities/with_dom.rb,
lib/arachni/element/link_template/capabilities/auditable.rb,
lib/arachni/element/link_template/capabilities/inputtable.rb,
lib/arachni/element/nested_cookie/capabilities/submittable.rb,
lib/arachni/element/link_template/dom/capabilities/submittable.rb

Overview

Copyright 2010-2022 Ecsypno http://www.ecsypno.com

This file is part of the Arachni Framework project and is subject to
redistribution and commercial restrictions. Please see the Arachni Framework
web site for more information on licensing and terms of use.

Defined Under Namespace

Modules: Capabilities Classes: Base, Body, Cookie, DOM, Error, Form, GenericDOM, Header, JSON, Link, LinkTemplate, NestedCookie, Path, Server, UIForm, UIInput, XML

Class Method Summary collapse

Class Method Details

.type_to_class(type) ⇒ Object



15
16
17
18
19
20
21
# File 'lib/arachni/element/base.rb', line 15

def self.type_to_class( type )
    Element.constants.each do |c|
        klass = Element.const_get( c )
        return klass if klass.respond_to?(:type) && klass.type == type
    end
    nil
end