Not able to get console logs on firefox webdriver
问题 I am using Firefox version 53. Geckodriver version 0.16, selenium version 3.4. I want totake console logs of webdriver from selenium import webdriver from selenium.webdriver.common.desired_capabilities import DesiredCapabilities d = DesiredCapabilities.FIREFOX d['loggingPrefs'] = {'browser': 'ALL'} driver = webdriver.Firefox(capabilities=d) driver.set_window_size(1280,1024) driver.get('http://google.com') try: for entry in driver.get_log('browser'): print entry finally: driver.quit() Console