验证字符串中的下拉元素

时间:2016-07-19 12:30:53

标签: selenium xpath webdriver

我刚点击Console.WriteLine(path); /* C:\\Files\\MyFiles */ 。现在,如何检查dropdown中是否存在预期的字符串,如果元素不存在,则显示消息:dropdown

代码:

"This element is not present"

0 个答案:

没有答案