Skip to content
New issue

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

UnsupportedCommandException: POST /session/<sessionid>/log with Firefox #2910

Closed
ronvanpol opened this issue Oct 12, 2016 · 1 comment
Closed

Comments

@ronvanpol
Copy link

ronvanpol commented Oct 12, 2016

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

@lukeis
Copy link
Member

lukeis commented Oct 12, 2016

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants