lib/selenium/webdriver/common/interactions/none_input.rb in selenium-webdriver-4.1.0 vs lib/selenium/webdriver/common/interactions/none_input.rb in selenium-webdriver-4.2.0
- old
+ new
@@ -18,18 +18,20 @@
# under the License.
module Selenium
module WebDriver
module Interactions
- class NoneInput < InputDevice
- def type
- Interactions::NONE
- end
+ #
+ # Creates actions specific to null input source
+ # This is primarily used for adding pauses
+ #
+ # @api private
+ #
- def encode
- return nil if no_actions?
-
- {type: type, id: name, actions: @actions.map(&:encode)}
+ class NoneInput < InputDevice
+ def initialize(name = nil)
+ super
+ @type = Interactions::NONE
end
end # NoneInput
end # Interactions
end # WebDriver
end # Selenium