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

249
Vistas
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
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