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

100
Visualizações
Not able to move the scroll bar inside Tag

I have requirement to move the scroll bar in div tag till the end in CodeceptJS

div class name : form-section credit-app-container terms-and-conditions-scrolled

I tried to give the CSS Selector like this. But the scroll bar is not moving till the end [class^="form-section credit-app-container"] *:last-child .form-section credit-app-container terms-and-conditions-scrolled > *:last-child

Here I used the function I.scrollIntoView();

I also did the following things to resolve

1. await I.executeScript(function()
{
      let objDiv = document.querySelector(this.termsAndConditionScrollBar);
      objDiv.scrollTop = objDiv.scrollHeight;
    });

But here I am getting an error 1] Error | javascript error: javascript error: Cannot read properties of null (reading 'scrollHeight') 2.

await I.executeScript(function() {
      $(".terms-and-conditions-scrolled").scrollTo(1000, 1000);
    });

Here I am getting an error that $ is not defined

Please let me know if you need any other details to resolve

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