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

251
Views
why selenium's execute_script doesn't work?

This is my test page: http://121.41.14.39:8088/index.html#/

This is my test code

from selenium import webdriver
driver = webdriver.Chrome()
driver.get('http://121.41.14.39:8088/index.html#/')
js1 = 'document.getElementById("username").value="sq99"'
js2 = 'document.getElementById("password").value="123"'
js3 = 'document.getElementById("code").value="999999"'
js4 = 'document.getElementById("submitButton").click()'
driver.execute_script(js1)
driver.execute_script(js2)
driver.execute_script(js3)
driver.execute_script(js4)

It didn't login the system. So i try to excute ths js code manually. It also fails. The Picture

I test the similar code on the other website , it may works sometime but fails sometimes. How can i make it successfully?I think it caused by the web,but i don't know where...

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!