【发布时间】:2018-11-17 11:44:23
【问题描述】:
<div data-ng-if="!newRequestReceived" class="ng-scope">
<!-- ngIf: !authRequestCount --><p data-ng-if="!authRequestCount" class="ng-scope" style="" xpath="1">No more candidates awaiting Authorization</p><!-- end ngIf: !authRequestCount -->
<!-- ngIf: authRequestCount -->
</div>
我需要帮助,
如果找到像“No more candidates awaiting Authorization”这样的字符串
循环将如何工作???
driver.findElement(By.xpath("//p[@class='ng-scope'][contains('No more candidates awaiting Authorization']"));
这是正确的
【问题讨论】:
-
'循环将如何工作???;你在这行是什么意思?
-
没有循环......你的意思是使用
driver.findElements(不是复数的s)?
标签: java selenium xpath css-selectors webdriverwait