谁能告诉我如何识别 selenium webdriver
中的以下元素。以下是它的 html
版本:
<select ng-model="tripDetails.destinationId" ng-change="$parent.$parent.$parent.updateTripSourceCity($index)" required="" class="ng-touched ng-dirty ng-valid-parse ng-valid ng-valid-required">
最佳答案
尝试使用以下 CSS
选择器通过类名来识别它
select.ng-touched.ng-dirty.ng-valid-parse.ng-valid.ng-valid-required
关于javascript - 如何在 Selenium webdriver 中使用 cssSelector 识别多个参数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40866624/