Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

192
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!