使用 getElementById 在最后一行出现错误。是什么赋予了?
import win32com.client as client
import time
ie = client.Dispatch('InternetExplorer.Application.1')
ie.Visible = 1
ie.Navigate('www.myweb.it')
while ie.Busy:
time.sleep(0.1)
while ie.Document.readyState != 'complete':
time.sleep(0.1)
click = ie.Document.getElementById('some_id').click() # here goes in error