Selenium - 验证建议列表是否显示
在文本字段中输入字母时,使用什么命令来验证是否显示建议列表(例如:a)?如何验证列表中的项目以您输入的字母开头?
What command is used to verify the list of suggestions is displayed when typing a letter in text field (example: a)? And how to verify the items in the list start with the letter you typed?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我相信您正在谈论诸如带有自动完成功能的 Google 建议之类的内容。您的测试将如下所示
将如下所示
希望有帮助
I believe you're talking about something like Google Suggests with autocomplete. Your test would look something like this
The calls would be like this
Hope that helps