Get browser's logs in Selenium

# encoding: utf-8 require 'selenium-webdriver' driver = Selenium::WebDriver.for :phantomjs driver.execute_script 'console.log("foo")' logs = driver.manage.logs.get :browser

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.