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

186
Visualizações
How to play a video on full screen and able to turn volume down/up in cypress?

I am trying to figure out how to play video on full screen but my code is not working:

cy.get('[class="shaka-fullscreen-button material-icons-round shaka-tooltip"]')
  .should('be.visible')
  .and('contain', 'fullscreen').click()

I am able to play the video on mute but I want to test the volume can be reduced but cant get this working.

Code for starting video on default screen on mute:

cy.get('#video')
.then((video) => {
  const element = video.get(0);
  element.muted = true;
  element.play();
  return video;
})

div (Element code):

<button class="shaka-mute-button material-icons-round shaka-tooltip" aria-label="Mute">volume_up</button>
<div class="shaka-range-container shaka-volume-bar-container" style="background: linear-gradient(to right, rgb(255, 255, 255) 76.8111%, rgba(255, 255, 255, 0.54) 76.8111%, rgba(255, 255, 255, 0.54) 100%);">
    <input class="shaka-range-element shaka-volume-bar" type="range" step="any" min="0" max="1" aria-label="volume">
</div>
<button class="shaka-fullscreen-button material-icons-round shaka-tooltip" aria-label="Full screen">fullscreen</button>
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