Sha256: bc9ca423372651bc5acb783a6092fe26384539432ce1690c9efff5de9e55f0a4
Contents?: true
Size: 1.12 KB
Versions: 7
Compression:
Stored size: 1.12 KB
Contents
=begin Copyright 2010-2014 Tasos Laskos <tasos.laskos@arachni-scanner.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. =end module Arachni::Element class Form # Provides access to DOM operations for {Form forms}. # # @author Tasos "Zapotek" Laskos <tasos.laskos@arachni-scanner.com> class DOM < Base include Capabilities::Auditable::DOM def initialize( options ) super self.inputs = (options[:inputs] || self.parent.inputs).dup @default_inputs = self.inputs.dup.freeze end # Submits the form using the configured {#inputs}. def trigger browser.fire_event element, :submit, inputs: inputs.dup end def encode( *args ) Form.encode( *args ) end def decode( *args ) Form.decode( *args ) end def type self.class.type end def self.type :form_dom end def initialization_options super.merge( inputs: inputs.dup ) end end end end
Version data entries
7 entries across 7 versions & 1 rubygems