[Solved] click() command not working on document.getElementsByClassName()
getElementsByClassName returns a HTMLCollection, which is an array-like object. That means that in you case, you should get the element at index 0, which ideally for the kind of application that you are building should be the only one that you get: document.getElementsByClassName(‘btn btn-danger btn-lg btn-block betButton’)[0].click() Otherwise your extension will probably stop working if … Read more