Failed to execute 'evaluate' on 'Document': The result is not a node set, and therefore cannot be converted to the desired type

2,526 views
Skip to first unread message

jloyzaga

unread,
Jul 25, 2016, 2:22:13 AM7/25/16
to robotframework-users
I'm try to click on a link Acid Sulphate Soils Risk Data
 and then click on the next one of that class - if I use the class ng-binding I'm finding 149 but there are actually 10 displayed on the screen. I cannot use the text as I'm tring to click on those links with that class - how can I limit it to only those visible?

Attached is the Firebug xpath

with the html below

<div class="row">
<div class="col-lg-3 panel panel-default">
<div class="col-lg-9 panel panel-default" title="Selected Filter criteria">
<div class="panel-body">
<div class="row" ng-show="selectedOrganizations.length>0 || selectedFormats.length>0 || selectedTags.length>0 || selectedCategories.length>0">
<p class="filter-list thumbnail" ng-show="selectedOrganizations.length>0 || selectedFormats.length>0 || selectedTags.length>0 || selectedCategories.length>0">
<div class="row">
<div class="row">
<ul title="Results List" style="margin-top: 10px;">
<!-- ngRepeat: dataset in datasets | filter:filterDatasets | orderBy:orderByParam:rev_orderby_Ascending | itemsPerPage: pageSize -->
<li class="ng-scope" style="list-style-type: none;" current-page="currentPage" ng-repeat="dataset in datasets | filter:filterDatasets | orderBy:orderByParam:rev_orderby_Ascending | itemsPerPage: pageSize">
<div class="thumbnail">
<div class="caption">
<div class="row">
<div class="col col-lg-9 " title="Acid Sulphate Soils Risk Data">
<a class="ng-binding" title="view metadata for for dataset" style="color:#c04deb;" ng-href="http://ckan.sit.edptest.info/dataset/c13a2010-3424-46fb-a00e-432e70dd7fbc" href="http://ckan.sit.edptest.info/dataset/c13a2010-3424-46fb-a00e-432e70dd7fbc"> Acid Sulphate Soils Risk Data</a>
</div>
<div class="col col-lg-3" style="margin-top: 10px;">
</div>
<div class="ng-isolate-scope" title="dataset description" show-more-height="64" show-more="">
<p/>
<p class="ng-binding">Category: Environment</p>
<p>
</div>
<span class="row" title="list of resource formats" style="margin-left:5px;">
</div>
</li>
Reply all
Reply to author
Forward
0 new messages