Also note that there is no method called as getElementByClass
, the correct method name is document.getElementsByClassName and this method will return an array so you need to use:
setTimeout(function () {
document.getElementsByClassName('tt-next')[0].click();
, 3000);
You can apply jQuery using:
setTimeout(function () {
$('.tt-next').click();
, 3000);