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

98
Visualizações
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 à 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