I am trying to scroll the datasheet automatically, untill the end. How I can do that using javascript console.
I tried in this way, but it did not worked.
function autoClickShowMore() {
var showMoreButton = document.querySelector('#showMoreHistory256, .showMoreReplies.block a');
if (showMoreButton) {
console.log('Clicking "Show more" button...');
showMoreButton.click();
setTimeout(autoClickShowMore, 1000); // Adjust the delay as needed
} else {
console.log('No "Show more" button found.');
}
}
autoClickShowMore();