class Arachni::Element::Cookie::DOM
Provides access to DOM
operations for {Cookie cookies}.
@author Tasos “Zapotek” Laskos <tasos.laskos@arachni-scanner.com>
Public Class Methods
new( options )
click to toggle source
Calls superclass method
# File lib/arachni/element/cookie/dom.rb, line 23 def initialize( options ) super self.inputs = (options[:inputs] || self.parent.inputs).dup @default_inputs = self.inputs.dup.freeze end
type()
click to toggle source
# File lib/arachni/element/cookie/dom.rb, line 57 def self.type :cookie_dom end
Public Instance Methods
initialization_options()
click to toggle source
Calls superclass method
# File lib/arachni/element/cookie/dom.rb, line 61 def initialization_options super.merge( inputs: inputs.dup ) end
name()
click to toggle source
# File lib/arachni/element/cookie/dom.rb, line 40 def name inputs.keys.first end
trigger()
click to toggle source
Submits the cookie using the configured {#inputs}.
# File lib/arachni/element/cookie/dom.rb, line 31 def trigger [ browser.goto( action, take_snapshot: false, cookies: self.inputs, update_transitions: false ) ] end
type()
click to toggle source
# File lib/arachni/element/cookie/dom.rb, line 54 def type self.class.type end
value()
click to toggle source
# File lib/arachni/element/cookie/dom.rb, line 44 def value inputs.values.first end