SeleniumHQ / selenium

A browser automation framework and ecosystem.
https://selenium.dev
Apache License 2.0
30.09k stars 8.09k forks source link

Clear() number inputs doesn't work #1544

Closed amwill1 closed 8 years ago

amwill1 commented 8 years ago

this is still an issue for me. (I just updated to Selenium Standalone 2.49.1) I've tried the suggestions in this question and did

numInput.click(); browser.sleep(1000); numInput.clear().sendKeys('5);

but this solution only seems to work sometimes. often what happens is the input gets cleared but then fills in the previous value before sending the new value. i'm not sure what to do. I'm using Protractor 3.0.0 as well but they directed me over here

barancev commented 8 years ago

For issues please provide a concise reproducible test case and describe what results you are seeing and what results you expect.

See CONTRIBUTING.md

amwill1 commented 8 years ago

I've tried making a minimal example but I can't reproduce it there. :( Here's the url just in case. It's a big problem in my project.

barancev commented 8 years ago

We have a special regression test for this case that passes in all main browsers: https://github.com/SeleniumHQ/selenium/blob/master/java/client/test/org/openqa/selenium/TypingTest.java#L697-L707