Class: Selenium::WebDriver::Logs

Inherits:
Object
  • Object
show all
Defined in:
lib/selenium/webdriver/common/logs.rb

Instance Method Summary collapse

Constructor Details

#initialize(bridge) ⇒ Logs

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of Logs.



26
27
28
# File 'lib/selenium/webdriver/common/logs.rb', line 26

def initialize(bridge)
  @bridge = bridge
end

Instance Method Details

#available_typesObject



34
35
36
# File 'lib/selenium/webdriver/common/logs.rb', line 34

def available_types
  @bridge.getAvailableLogTypes
end

#get(type) ⇒ Object



30
31
32
# File 'lib/selenium/webdriver/common/logs.rb', line 30

def get(type)
  @bridge.getLog type
end