We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OS: Windows 10 Selenium Version: 3.0.0-beta4 Browser: Firefox Browser Version: 48.0.2
Accessing the Firefox browser log
UnsupportedCommandException thrown
// init the firefox driver with browser logging preferences LoggingPreferences logs = new LoggingPreferences(); logs.enable(LogType.BROWSER, Level.ALL); DesiredCapabilities desiredCapabilities = DesiredCapabilities.firefox(); desiredCapabilities.setCapability(CapabilityType.LOGGING_PREFS, logs); WebDriver lDriver = new FirefoxDriver(desiredCapabilities);
...
// get the browser log entries LogEntries logEntries = aDriver.manage().logs().get( LogType.BROWSER );
The last line throws an UnsupportedCommandException:
org.openqa.selenium.UnsupportedCommandException: POST /session/25891b0f-1f08-453a-89f9-827ab63c0ebd/log did not match a known command Build info: version: '3.0.0-beta4', revision: '3169782', time: '2016-09-29 10:30:04 -0700' System info: host: 'PC-RON', ip: '169.254.80.80', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_92' Driver info: driver.version: RemoteWebDriver
The text was updated successfully, but these errors were encountered:
The logging api isn't yet apart of the w3c spec. It has been deferred to level 2 and will be tracked here: w3c/webdriver#406
GeckoDriver is following spec, so don't expect Mozilla to implement it until it is defined in the spec.
Sorry, something went wrong.
No branches or pull requests
Meta -
OS: Windows 10
Selenium Version: 3.0.0-beta4
Browser: Firefox
Browser Version: 48.0.2
Expected Behavior -
Accessing the Firefox browser log
Actual Behavior -
UnsupportedCommandException thrown
Steps to reproduce -
// init the firefox driver with browser logging preferences
LoggingPreferences logs = new LoggingPreferences();
logs.enable(LogType.BROWSER, Level.ALL);
DesiredCapabilities desiredCapabilities = DesiredCapabilities.firefox();
desiredCapabilities.setCapability(CapabilityType.LOGGING_PREFS, logs);
WebDriver lDriver = new FirefoxDriver(desiredCapabilities);
...
// get the browser log entries
LogEntries logEntries = aDriver.manage().logs().get( LogType.BROWSER );
The last line throws an UnsupportedCommandException:
org.openqa.selenium.UnsupportedCommandException: POST /session/25891b0f-1f08-453a-89f9-827ab63c0ebd/log did not match a known command
Build info: version: '3.0.0-beta4', revision: '3169782', time: '2016-09-29 10:30:04 -0700'
System info: host: 'PC-RON', ip: '169.254.80.80', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_92'
Driver info: driver.version: RemoteWebDriver
The text was updated successfully, but these errors were encountered: