Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

93
Visualizações
Automate Chase Credit Card Offers

Every month Chase offers rewards on their credit cards through different stores. There are like 70 offers and clicking into each one is a pain in the butt. I'm trying to find a way to automate this with a script in the DevTools console or using a DevTools snippet. Problem is, I'm not much of a JS engineer.

What I'm trying to do is use a script to "click" on one of the offers. Then, a right slider pops up with info about the offer. I then would like to "click" the X button to close that slider, then go to the next offer. I've tried a bunch of different variations of code that just don't seem to work. I'm having a hard time grokking how to make Promises work. I have also tried setTimeouts in a bunch of different places with a bunch of different times.

I've included the images to show the layout and the classes I'm trying to select.

Latest Attempt (at this point I'd given up)

async function taskOne(i, thisObj) {
    $(thisObj).click().delay(1000);
    $("#flyoutCloseIcon").click();
}

async function clickDeal() {
    $(".iconAddToCard").each(async function(i) { 
        await taskOne(i, $(this));
    });
}

async function main() {
    await clickDeal();
}

main();

Another Failed Attempt

$(".iconAddToCard").on('click', function (event){
    console.log("click card");
    event.stopPropagation();
});

$(".flyoutCloseIcon").on('click', function (event){
    console.log("click X");
    event.stopPropagation();
});


function taskOne(i, this_obj) {
  setTimeout(function() {
      $(this_obj).click();
  }, 1000 * i);
   setTimeout(function() {
      $("#flyoutCloseIcon").click();
  }, 3000 * i);
}


var arrLength = $(".iconAddToCard").length;
var count = 1;

function myLoop() {         
  setTimeout(function() {   
    console.log('hello');
    count++;
    if (count < arrLength) {       
        $(".iconAddToCard").each(function(i) { 
          taskOne(i, $(this));
          myLoop();
        })
    }
  }, 6000 * count)
}

myLoop();

Chase offer Side slider

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda