遇到了一个报错为TypeError: 'module' object is not callable是因为方法调用错误time不是方法而我却调用了
手动重新写下打开信联平台的代码
#--*- coding:utf-8-*-
from selenuim import webdriver
import time
drive=webdriver.Firefox()
drive.maximize_window()
time.sleep(2)
drive.get("http://10.180.29.20:8080/fbms/login.do")
time.sleep(1)
drive.find_element_by_xpath("/html/body/div[2]/table/tbody/tr/td/table/tbody/tr[2]/td/table/tbody/tr/td[2]/form/table/tbody/tr[1]/td[2]/input").send_keys("000000")
drive.find_element_by_xpath("/html/body/div[2]/table/tbody/tr/td/table/tbody/tr[2]/td/table/tbody/tr/td[2]/form/table/tbody/tr[2]/td[2]/input").send_keys("123")
drive.find_element_by_xpath("/html/body/div[2]/table/tbody/tr/td/table/tbody/tr[2]/td/table/tbody/tr/td[2]/form/table/tbody/tr[3]/td[2]/img[1]").click()
网友评论