selenium-ide icon indicating copy to clipboard operation
selenium-ide copied to clipboard

Type does'nt work anymore with input readonly

Open AyaSF opened this issue 8 years ago • 7 comments

Hi,

In the Selenium IDE Firefox version 3.0.3.0, it is not anymore possible to use the type command with a readonly input.

Could you fix that?

Thank you very much by advance, AyaSF

AyaSF avatar Jun 14 '18 15:06 AyaSF

If the input is readonly, you shouldn't be able to type in it, that is the intended behavior.

corevo avatar Jun 14 '18 18:06 corevo

It was possible in the previous selenium. And that serves me a lot for test cases.

For example, a readonly input with a calendar. And in my case, i always want the same date 12/06/2018. Every month the calendar change, so i can't make a test to choose a date in a calendar that can be reusable. Except if i can type in the input.

Could you reopen this issue please?

Thank you by advance. AyaSF

AyaSF avatar Jun 14 '18 18:06 AyaSF

According to the W3C WebDriver spec, element that is readonly will not be typed to.
I'm sorry but this is the current intended Selenium behavior.
More over I have tested it myself with Selenium 3.6.0 and reached the same conclusion.

corevo avatar Jun 14 '18 18:06 corevo

I use selenium ide every day, so i assure you it was possible in the previous ide version on firefox 54.

I understand you want to follow rules. But it's for me a necessary functionality. So thank you for your great job on this version, but unfortunetly I have to reuse the old one.

Good continuation !

AyaSF avatar Jun 14 '18 19:06 AyaSF

Perhaps you could try using runScript to make the input editable, and then make it readonly after setting the value, to not interfere with the application.

corevo avatar Jun 14 '18 19:06 corevo

Thanks a lot for the tip. I'll try it tomorrow. ;)

AyaSF avatar Jun 14 '18 19:06 AyaSF

resolve with runScript before.

AyaSF avatar Jun 16 '18 10:06 AyaSF