I am trying to click the link found at the bottom of this page with the text "Show more companies".
I tried these two ways so far:
$('a:contains("Show more companies")').click();
$('a:contains("Show more companies")').trigger('click');
but I am getting this error:
TypeError: Object <a class="button AjaxPagerLink" href="http://www.trustpilot.co.uk/categories/computer?page=2">
Show more companies </a> has no method 'click' at Request._callback (C:\app.js:42:43)
Any clues what the problem is? Is my command correct? Any advice/help is really appreciated.
Edit: Tried all these solutions. Getting the same error.