【发布时间】:2018-12-19 16:30:20
【问题描述】:
在量角器测试中,我有一个预先填充了值的<input type="text"/>,我想删除该值并键入一个新值。理想情况下,我可以说类似
// Some way to select all the text in the text box so `
// sendKeys` will type over it.
element(by.css("input.myInput")).selectAll();
element(by.css("input.myInput")).sendKeys("my new value");
但是selectAll 不存在,我在 API 文档中找不到任何有用的信息。
有什么想法吗?
【问题讨论】:
标签: protractor