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

99
Vistas
Browser JS: Switch execution context to page script

I know what concrete result I want, but what precisely what I want to do is an unknown to me, so forgive me if the title is incorrect.

Essentially, I want to invoke a function in a page's scripts. Here's an example.

  • The page is https://www.anthem.com/provider/policies/clinical-guidelines/updates/?cnslocale=en_US_ga
  • This page loads https://www.anthem.com/assets/scripts/scripts.js?07152022
  • This script has the function getProviderMPForms which is used to fetch the data for the page

I want to call this function directly, from the context of the web console (actually running in Selenium, but basically the web console). Is this even possible? I've looked up something along the lines of switching context, but I'm not even certain what the precise problem I'm facing is.

The browser is Chrome, but ideally the solution only depends on browser-agnostic JS.

about 4 years ago · Santiago Gelvez
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