Module: OnlyofficeWebdriverWrapper::WebdriverBrowserLogHelper

Included in:
WebDriver
Defined in:
lib/onlyoffice_webdriver_wrapper/webdriver/webdriver_browser_log_helper.rb

Overview

Methods for working with browser console logs

Instance Method Summary collapse

Instance Method Details

#browser_logsArray

Returns list of browser logs.

Returns:

  • (Array)

    list of browser logs



7
8
9
10
11
# File 'lib/onlyoffice_webdriver_wrapper/webdriver/webdriver_browser_log_helper.rb', line 7

def browser_logs
  return [] if browser == :firefox # not implemented, see https://github.com/mozilla/geckodriver/issues/284

  @driver.logs.get(:browser)
end