Unsupported Command Error when invoking active_elements

Number:rdar://32247008 Date Originated:2017-05-17
Status:Closed Resolved:Fixed
Product:Safari Product Version:10.1
Classification: Reproducible:Always
See https://github.com/SeleniumHQ/selenium/issues/4030 for context, which was closed by the Selenium team as an Apple bug in SafariDriver on the basis that if POST is not an acceptable HTTP method for /element/active than SafariDriver needs to tell Selenium that it is accepting only W3C commands.

Steps to Reproduce:
require 'selenium-webdriver'
wd = Selenium::WebDriver.for :remote, desired_capabilities: { browserName: 'safari' }
wd.navigate.to 'http://example.com'

Expected Results:
No error reported raised

Actual Results:
An error is raised

macOS Sierra 10.12.4


Original rdar closed as a duplicate

My bug report was closed by Apple today as a duplicate of 31936252 which is not in open radar.

By jason.lunn at May 25, 2017, 2:57 p.m. (reply...)

Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!