I am writing a plugin to process useful information for myself inside the Amazon seller central dashboard.
For some reason a click() call on a Next page link will not fire from inside the context script.
The code is running, but this does nothing:
var $next = $('a:contains(Next)');
$next.click();
but strangely this works:
var $next = $('a:contains(Next)');
window.location = $next.attr("href");
The example of the HTML of the link is:
<td align="right" valign="middle" width="60%" class="tiny">
<nobr> <a href="https://sellercentral-europe.amazon.com/gp/feedback-manager/view-all-feedback.html?ie=UTF8&currentPage=2&dateRange=&descendingOrder=1&pageSize=50&sortType=Date">Next</a>
</nobr>
</td>
Are there any restrictions on running click events inside Chrome extension? A button press on another page works just fine (although that one is structured differently - see below):
<a class="buttonImage" name="View all your feedback" href="https://sellercentral-europe.amazon.com/gp/feedback-manager/view-all-feedback.html/ref=fb_fbmgr_vwallfb?ie=UTF8&dateRange=&descendingOrder=1&sortType=Date">
<span class="awesomeButton buttonLarge primaryLargeButton inner_button">
<span class="button_label">View all your feedback</span>
</span>
</a>