You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
C-dotnet.NET BindingsC-javaJava BindingsC-nodejsJavaScript BindingsC-pyPython BindingsC-rbRuby BindingsG-w3cRequires change to W3C SpecI-defectSomething is not working as intendedZ-marionetteArchived: Marionette browser / driver
The W3C WebDriver specification does not specify a command for submitting a form. Many language bindings in Selenium provide a webElement.submit() function that no longer has a corresponding primitive in the remote end.
Selenium will need to provide a shim for submitting a form.
Given an HTML form,
<form><input><inputtype=submit></form>
one could imagine the workaround looking at element.form.submit() through JavaScript.
I have that problem with the very recent selenium-java 3.0.0-beta4.
Although I must admit, I don’t understand the nature of the problem. The symptoms: When I am trying to submit a form with GeckoDriver, my web app tells me “HTTP method POST is not supported by this URL”. That does not happen e.g. with ChromeDriver.
C-dotnet.NET BindingsC-javaJava BindingsC-nodejsJavaScript BindingsC-pyPython BindingsC-rbRuby BindingsG-w3cRequires change to W3C SpecI-defectSomething is not working as intendedZ-marionetteArchived: Marionette browser / driver
Activity
andreastt commentedon Sep 30, 2016
This was reported in mozilla/geckodriver#247.
AutomatedTester commentedon Sep 30, 2016
This has been done in all the clients from what I can see so closing
mb73 commentedon Sep 30, 2016
I have that problem with the very recent selenium-java 3.0.0-beta4.
Although I must admit, I don’t understand the nature of the problem. The symptoms: When I am trying to submit a form with GeckoDriver, my web app tells me “HTTP method POST is not supported by this URL”. That does not happen e.g. with ChromeDriver.
andreastt commentedon Sep 30, 2016
It does appear to be fixed in the Java bindings: https://github.com/SeleniumHQ/selenium/blob/master/java/client/src/org/openqa/selenium/remote/http/W3CHttpCommandCodec.java#L175
mb73 commentedon Sep 30, 2016
But that is the version I am using. Without that commit I was not able to get the active element. You remember? Now I am one step further.
That commit also is 4 days ago, the beta 4 is from yesterday.