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

147
Vistas
Puppeteer selector for dynamically generated span attributes

I'm trying to get the text of a span on a Salesforce Lightning page, but on every page the span tag has different attributes.

The element i'm trying to select looks like this:

<span force-lookup_lookup="" data-proxy-id="aura-pos-lib-9" id="window">SFDC Admin</span>

So based on this the selector would be [data-proxy-id="aura-pos-lib-9"][id="window"]

However the same span in the same spot (visually speaking) on a different page is:

<span force-lookup_lookup="" data-proxy-id="aura-pos-lib-17" id="window">SFDC Admin</span>

Not to mention that [data-proxy-id="aura-pos-lib-9"][id="window"] might contain information from a completely different field on another page.

How can I select this dynamically changing element and save its contents (in this case SFDC Admin) to a variable?

Thank you in advance.

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