lib/appium_lib/driver.rb in appium_lib-12.0.0.rc2 vs lib/appium_lib/driver.rb in appium_lib-12.0.0.rc3
- old
+ new
@@ -780,10 +780,12 @@
def log_event(vendor:, event:)
@driver.logs.event vendor: vendor, event: event
end
def log_event=(log_event)
- raise ArgumentError('log_event should be Hash like { vendor: "appium", event: "funEvent"}') unless log_event.is_a?(Hash)
+ unless log_event.is_a?(Hash)
+ raise ::Appium::Core::Error::ArgumentError('log_event should be Hash like { vendor: "appium", event: "funEvent"}')
+ end
@driver.logs.event vendor: log_event[:vendor], event: log_event[:event]
end
# @since Appium 1.16.0