Answer the question
In order to leave comments, you need to log in
How to fix TypeError: Cannot read property 'firesTouchEvents' of null?
I'm trying to create a bot for a browser game and when I click on one of the buttons, this error pops up, although if I click on any other button, everything works fine. Is it possible that some protection is worth it? This bot is created as a browser snippet.
var button2 = document.getElementsByClassName('_action');
button2[0].click()
<div class="_action">Кнопка</div>
var buttons = $('form').eq(0).find('button');
for (var index = 0; index < buttons.length; ++index) {
if(buttons.eq(index).css('display') == "inline-block") {
buttons.eq(index).mouseenter();
buttons.eq(index).click();
return true;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question