jeudi 6 août 2020

I am getting this xpath error in eclipse , i think xpath is correct(1 of 1) but why am getting error

<div class="u-grid">
<div class="u-truncate ng-binding ng-isolate-scope" ng-class="" ng-style="" tooltip="" tooltip-truncated="" ng-bind="$ctrl.parent.getProperty($ctrl.field, $ctrl.record)" xpath="1">24" Combination refrigerator w/ ice maker reversible door swing, Black</div>
</div>

xpath:

driver.findElement(By.xpath("//div[contains(text(),'24" Combination refrigerator w/ ice maker reversib')]")).click();

Aucun commentaire:

Enregistrer un commentaire