Answer the question
In order to leave comments, you need to log in
JS / jQuery - why can't I programmatically click on a button?
I am making a bot for one site in JS. I load my JS file through a bookmark in the browser, there is such a way.
I use the Google Chrome browser, I try using jQuery to click on the button on this site, but for some reason it does not work.
Not advertising for the sake of course, the site itself is here: alpari[dot]ru/ru/binary_options/
You need to click on the "ABOVE" button. Tried in two ways:
$("div.bali-grid__call_put button.bali-button_type_green").trigger("click");
var event = $.Event('click');
event.clientX = 1010;
event.clientY = 805;
$('div.bali-grid__call_put button.bali-button_type_green').trigger(event);
Answer the question
In order to leave comments, you need to log in
Maybe because the scripts are crooked?
Uncaught ReferenceError: $ is not defined
at <anonymous>:1:1
at gtm.js?id=GTM-5PSP3R:59
at Object.Th (gtm.js?id=GTM-5PSP3R:61)
at sf (gtm.js?id=GTM-5PSP3R:31)
at uk.B (gtm.js?id=GTM-5PSP3R:97)
at ag (gtm.js?id=GTM-5PSP3R:107)
at jg (gtm.js?id=GTM-5PSP3R:39)
at kg (gtm.js?id=GTM-5PSP3R:40)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question