Add a debug log so we can tell what page we're going to if we fail

This commit is contained in:
LeeDr 2016-06-30 15:13:56 -05:00
parent cfe85639fc
commit 583c89012c

View file

@ -238,6 +238,7 @@ export default (function () {
}, },
goToPage: function (pageNum) { goToPage: function (pageNum) {
common.debug('goToPage (' + pageNum + ')');
return this.remote.setFindTimeout(defaultFindTimeout) return this.remote.setFindTimeout(defaultFindTimeout)
.findByCssSelector('ul.pagination-other-pages-list.pagination-sm.ng-scope li.ng-scope:nth-child(' + .findByCssSelector('ul.pagination-other-pages-list.pagination-sm.ng-scope li.ng-scope:nth-child(' +
(pageNum + 1) + ') a.ng-binding' (pageNum + 1) + ') a.ng-binding'