Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在文本字段中键入字母时,使用什么命令来验证建议列表是否显示(例如:a)?以及如何验证列表中的项目是否以您输入的字母开头?
我相信您说的是带有自动完成功能的 Google Suggests 之类的东西。你的测试看起来像这样
电话是这样的
open(/) typeAndWait(textId,a) verifyText(css=div#suggestion:first-child,a*)
希望有帮助