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

172
Visualizações
I don't know how to access Rate Inquiry tab of RCLGROUP site using Puppeteer

This is the analyzed page https://eservice.rclgroup.com/

I want to use Puppeteer to access the RATE INQUIRY tab but it seems to be rendered by a callGetrate() function; I tried to use await page.click(querySelectorAll('a[onclick^="callGetrate"]')) and try another way to access that callGetrate function by page.evalute(). Everything is not working. It just stops at the Booking Tab.

Screen of the RCLGROUP page

This is the function of the website

The callgetRate function of the RCLGROUP site

This is my code

try{
  const browser = await puppeteer.launch({
    headless: false,
    args: [
      "--disable-gpu",
      "--disable-dev-shm-usage",
      "--disable-setuid-sandbox",
      "--no-sandbox",
    ],
    defaultViewport: null,
  });
  const page = await browser.newPage();

  await page.goto(`${constants.BASE_URL}e-commerce/`);



  await page.waitForSelector('#userId');
  await page.type('#userId', constants.userAccount.username , { delay: 100 });
  await page.type('#password', constants.userAccount.password , { delay: 100 });

  await page.click('input[type=submit]');

  await page.evaluate(() => {
    callGetrate();
  })


    
  const cookie = await page.cookies();
  console.log(cookie);


  return cookie.map((x) => `${x.name}=${x.value}`).join("; ");  

  }catch(error){
    console.log("Failed to Login RCL ", error);
  }
}

Please help me!

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