Skip to content

Provide shim for submitting form command #2854

Closed

Description

@andreastt

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>
 <input type=submit>
</form>

one could imagine the workaround looking at element.form.submit() through JavaScript.

Activity

  1. added
    C-py
    C-rb
    C-dotnet
    C-java
    C-nodejs
    I-defect
    Z-marionette
    G-w3c
    on Sep 30, 2016
  2. andreastt commented on Sep 30, 2016

    @andreastt
    MemberAuthor

    This was reported in mozilla/geckodriver#247.

  3. AutomatedTester commented on Sep 30, 2016

    @AutomatedTester
    Member

    This has been done in all the clients from what I can see so closing

  4. mb73 commented on Sep 30, 2016

    @mb73

    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.

  5. mb73 commented on Sep 30, 2016

    @mb73

    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.

  6. locked and limited conversation to collaborators on Aug 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-dotnetC-javaC-nodejsC-pyC-rbG-w3cI-defectZ-marionette

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions