Submit form using webdriver fails on Edge 15

Confirmed Issue #12658469 • Assigned to Mustapha J.

Details

Author
Jesse C.
Created
Jul 6, 2017
Privacy
This issue is public.
Found in
  • Microsoft Edge
Reports
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

Simplifying the repro steps for this issue. What it boils down to is this:
If you click ".submit()" on the form element itself, we fail to submit due to an elementnotfound exception. All other drivers work in this case.

This code will repro:

            _driver.Navigate().GoToUrl(“http://ie-snap/scratchtests/johnjan/bugs/form.htm”);
            Thread.Sleep(2000);
            _driver.FindElementById(“inputelement”).Submit(); // does not fail
            Thread.Sleep(2000);
            _driver.FindElementById(“formelement”).Submit(); // fails

(the html of the page is simply this:
<form id="formelement">
    <input id="inputelement" type="text">
</form>
)

Attachments

0 attachments

    Comments and activity

    • Changed Steps to Reproduce

    • Microsoft Edge Team

      Changed Assigned To to “Steven K.”

    • Hi,

      Can you provide a repro for this?  For example, the website you tested against and your webDriver code?

      From the exception logs it is showing that there is a problem locating the requested element:

      5:9:4:47 REQUEST [2017-7-6 5:9:4:47] POST /session/ef5a5fc6361df3ecef251af05ca384d5f83290ff/element/8/submit {} 2017-7-6 5:9:4:461 RESPONSE {"state":"no such element","sessionId":"ef5a5fc6361df3ecef251af05ca384d5f83290ff","hCode":31671811,"value":{"additionalInformation":"\nDriver info: 

      Have you tried selecting the form button and then using the click() method?  Both submit() on a form element and click() on a form button should work:

      https://stackoverflow.com/questions/17530104/selenium-webdriver-submit-vs-click

      Steve

    • Microsoft Edge Team

      Changed Status to “Confirmed”

      Changed Assigned To to “Mike J.”

      Changed Assigned To from “Mike J.” to “John J.”

      Changed Status from “Confirmed”

      Changed Steps to Reproduce

      Changed Assigned To from “John J.” to “Mustapha J.”

      Changed Status to “Confirmed”

    You need to sign in to your Microsoft account to add a comment.

    Sign in