Class: Selenium::WebDriver::DevTools::MutationEvent

Inherits:
Object
  • Object
show all
Defined in:
lib/selenium/webdriver/devtools/mutation_event.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(element:, attribute_name:, current_value:, old_value:) ⇒ MutationEvent

Returns a new instance of MutationEvent.


27
28
29
30
31
32
# File 'lib/selenium/webdriver/devtools/mutation_event.rb', line 27

def initialize(element:, attribute_name:, current_value:, old_value:)
  @element = element
  @attribute_name = attribute_name
  @current_value = current_value
  @old_value = old_value
end

Instance Attribute Details

#attribute_nameObject

Returns the value of attribute attribute_name.


25
26
27
# File 'lib/selenium/webdriver/devtools/mutation_event.rb', line 25

def attribute_name
  @attribute_name
end

#current_valueObject

Returns the value of attribute current_value.


25
26
27
# File 'lib/selenium/webdriver/devtools/mutation_event.rb', line 25

def current_value
  @current_value
end

#elementObject

Returns the value of attribute element.


25
26
27
# File 'lib/selenium/webdriver/devtools/mutation_event.rb', line 25

def element
  @element
end

#old_valueObject

Returns the value of attribute old_value.


25
26
27
# File 'lib/selenium/webdriver/devtools/mutation_event.rb', line 25

def old_value
  @old_value
end