JSFiddle - React, Tailwind, and code Playground
by scurrilus
JavaScript
(function() {
var intervalButtonA = setInterval(function () {
if (angular.element(document.querySelector('.klarna')).length) {
clearInterval(intervalButtonA);
angular.element(document.querySelector('.klarna')).on("click", function() {
var time = 0
var intervalButtonB = setInterval(function () {
if (angular.element(document.querySelector('#paymentMethod-pay_now')).length) {
clearInterval(intervalButtonB);
angular.element(document.querySelector('#paymentMethod-pay_now')).click();
console.log("Test fertig: ", time);
}
console.log("Test me", time++);
}, 100);
});
}
console.log("Test me", time++);
}, 100);
})();