This is my test page: http://188.8.131.52:8088/index.html#/
This is my test code
from selenium import webdriver driver = webdriver.Chrome() driver.get('http://184.108.40.206: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...
Juan Pablo Isaza