Cannot SendKeys on date input control.

Confirmed Issue #8515651 • Assigned to Stanley H.

Details

Author
Truong P.
Created
Aug 17, 2016
Privacy
This issue is public.
Found in
  • Microsoft Edge
Found in build #
10
Reports
Reported by 2 people

Sign in to watch or report this issue.

Steps to reproduce

        static void D()
        {
            var driver = new EdgeDriver();
            driver.Url = "http://ie-snap/scratchtests/clmartin/test.html";
            var dateInput = driver.FindElementByXPath(“//*[@id="date”]");
            dateInput.SendKeys(“12-12-2017”);
            var value = dateInput.GetAttribute(“value”);
            Console.WriteLine(value);
            Console.ReadLine();
            driver.Quit();
        }

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Ibrahim O.”

      Changed Title from “Cannot SendKeys on input control” to “Cannot SendKeys on input control”

    • Thank you for your feedback. We will look into this issue. In the meantime as a temporary workaround, you to use JavaScriptExecutor to set the input value :

      JavascriptExecutor js = (JavascriptExecutor) driver;                     
      js.executeScript("document.getElementById(‘input’).setAttribute('value’, ‘2020-10-10’)");

      or use sendKeys() for input type range etc.

      driver.findElement(By.id(“input”)).sendKeys(Keys.ARROW_RIGHT); 

      Thanks again for your assistance in the investigation.

      All the best,
      The MS Edge Team

    • Microsoft Edge Team

      Changed Assigned To to “Mara P.”

      Changed Assigned To from “Mara P.” to “Clay M.”

      Changed Status to “Confirmed”

      Changed Title from “Cannot SendKeys on input control” to “Cannot SendKeys on input control”

      Changed Steps to Reproduce

      Changed Assigned To from “Clay M.” to “Stanley H.”

      Changed Status from “Confirmed” to “Fixed”

      Changed Assigned To to “Stanley H.”

      Changed Status from “Fixed”

      Changed Title from “Cannot SendKeys on input control” to “Cannot SendKeys on date input control.”

      Changed Status to “Confirmed”

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

    Sign in