Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

222
Vistas
How to access elements inside of a shadow DOM to use with synthetic scripted browser test(New Relic) with Node.js

I am trying to grab and click on a button with New Relic's synthetic scripted browser test utility but the element I'm trying to find is under a #shadow-root in the DOM. Node script looks like:

$browser.get('https://www.null.com').then(() => {
    return $browser.waitForAndFindElement($driver.By.className('btn'), 10000).click();
}):

But it errors out with:

Check failed with task timed out. Error: task timed-out waiting for element to be located using:By(css selector, .btn)

I'm asking to see if there is a work around for grabbing elements in the shadow DOM to be able to use with the selenium webdriver.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda