简体   繁体   English

Capybara / selenium-webdriver:将值设置为input [type =“ number”]无效

[英]Capybara/selenium-webdriver: set value to input[type=“number”] does not work

With latest update to selenium webdriver 2.41.0 and Firefox 29 setting of number fields does not seem to work any more: 对于selenium webdriver 2.41.0和Firefox 29的最新更新,数字字段的设置似乎不再起作用:

fill_in "my-field", with: 1 does not do anything. fill_in "my-field", with: 1不执行任何操作。 Is there some way to workaround this issue? 有什么方法可以解决此问题?

Selenium 2.41.0 only offically supports to Firefox 28. Please either downgrade to Firefox 28 or wait for the new Selenium release. Selenium 2.41.0仅正式支持Firefox28。请降级到Firefox 28或等待新的Selenium版本。

Duplicates of: 重复项:

Selenium can't find fields with type number Selenium找不到类型为数字的字段

Selenium send_keys doesn't work if input type=“number” 如果输入类型=“数字”,则硒send_keys不起作用

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM