标题: selenium+python报错:attributrerror,请指教! [打印本页] 作者: suxi 时间: 2016-10-8 16:04 标题: selenium+python报错:attributrerror,请指教! 错误提示:
ERROR: test_baidu_set (__main__.Baidu)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Python27\Files\baidu-2.py", line 48, in tearDown
self.assertEqual([],self.verificationErrors)
AttributeError: 'Baidu' object has no attribute 'verificationErrors'
----------------------------------------------------------------------
Ran 2 tests in 32.522s
FAILED (errors=2)
脚本:
#coding=utf-8
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import Select
from selenium.common.exceptions import NoSuchElementException
import unittest, time, re