阅读背景:

Selenium WebDriver:我希望在字段中覆盖值,而不是使用Java的sendKeys添加值

来源:互联网 

In WebDriver, if I use sendKeys it will append my string to the value that already exists in the field. I can't clear it by using clear() method because the second I do that, the webpage will throw an error saying that it has to be between 10 and 100. So I can't clear it or an error will be thrown before I can put in the new value using sendKeys, and if I sendKeys it just appends it to the value already there.In WebDriver, if I use sendKeys it will append




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: