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

Inherits:
Object
  • Object
show all
Defined in:
rb/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.



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

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.



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

def attribute_name
  @attribute_name
end

#current_valueObject

Returns the value of attribute current_value.



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

def current_value
  @current_value
end

#elementObject

Returns the value of attribute element.



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

def element
  @element
end

#old_valueObject

Returns the value of attribute old_value.



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

def old_value
  @old_value
end