lib/selenium/devtools/v85/console.rb in selenium-devtools-0.0.2.alpha vs lib/selenium/devtools/v85/console.rb in selenium-devtools-0.89.0
- old
+ new
@@ -18,34 +18,36 @@
# under the License.
# This file is automatically generated. Any changes will be lost!
module Selenium
module DevTools
- class Console
- EVENTS = {
- message_added: 'messageAdded',
- }.freeze
+ module V85
+ class Console
+ EVENTS = {
+ message_added: 'messageAdded',
+ }.freeze
- def initialize(devtools)
- @devtools = devtools
- end
+ def initialize(devtools)
+ @devtools = devtools
+ end
- def on(event, &block)
- event = EVENTS[event] if event.is_a?(Symbol)
- @devtools.callbacks["Console.#{event}"] << block
- end
+ def on(event, &block)
+ event = EVENTS[event] if event.is_a?(Symbol)
+ @devtools.callbacks["Console.#{event}"] << block
+ end
- def clear_messages
- @devtools.send_cmd('Console.clearMessages')
- end
+ def clear_messages
+ @devtools.send_cmd('Console.clearMessages')
+ end
- def disable
- @devtools.send_cmd('Console.disable')
- end
+ def disable
+ @devtools.send_cmd('Console.disable')
+ end
- def enable
- @devtools.send_cmd('Console.enable')
- end
+ def enable
+ @devtools.send_cmd('Console.enable')
+ end
- end # Console
+ end # Console
+ end # V85
end # DevTools
end # Selenium
\ No newline at end of file