jeudi 3 avril 2014

codeception cannot click on xpath as it cannot locate CSS or Xpath


Vote count:

0





<div id="page" class="container-fluid">
<div id="pageContent" class="">
<h1>Angular Test: projectUI</h1>
<!-- ngView: -->
<div class="ng-scope" data-ng-view="">
<ul class="package-menu container white ng-scope">
<!-- ngRepeat: package in packages | orderBy:'name' -->
<div class="ng-scope" data-ng-repeat="package in packages | orderBy:'name'">
<li>
<a class="ng-binding" href="#package/2">Craig's farm</a>
</li>
</div>


task : I want to click on Craig's farm label but when i try to click via CSS it give below


error: CSS or XPath '#pageContent.package-menu.container.white.ng-scope>li:nth-child(1)


can anyone give me the exact xpath of the above code??


Thank you



asked 1 min ago

shab

11





Aucun commentaire:

Enregistrer un commentaire