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

189
Visualizações
Circular Reference Error in Selenium while executing JavaScript

I am trying to get Recaptcha parameters from selenium by executing a JavaScript code but somehow its returning 'Circular Reference Error'. I understand the meaning of the error but I don't know what is causing this problem in this case. This is the url of the site site-url I also tried lookin at other stackoverflow answers but they don't seem to help. when i ran it in chrome-console it runs fine.

driver.execute_script('return ___grecaptcha_cfg.clients[0]') #this one works
driver.execute_script('return ___grecaptcha_cfg.clients[100000]') #returns error

Error

Traceback (most recent call last):
  File "<pyshell#41>", line 1, in <module>
    driver.execute_script('return ___grecaptcha_cfg')
  File "C:\Users\ABC\AppData\Local\Programs\Python\Python38\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 634, in execute_script
    return self.execute(command, {
  File "C:\Users\ABC\AppData\Local\Programs\Python\Python38\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute
    self.error_handler.check_response(response)
  File "C:\Users\ABC\AppData\Local\Programs\Python\Python38\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.JavascriptException: Message: javascript error: circular reference
  (Session info: chrome=92.0.4515.159)
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