|
#coding=utf-8
from selenium import webdriver
import time
driver = webdriver.Firefox()
#设置隐式等待
driver.implicitly_wait(10)
driver.get("http://10.188.181.74:9082/sso-webapp")
为什么运行了报错:C:\Users\sunl\AppData\Local\Programs\Python\Python36\python.exe E:/自动化测试/test/登录客反.pyTraceback (most recent call last): File "E:/自动化测试/test/登录客反.py", line 9, in <module> driver.implicitly_wait(10) File "C:\Users\sunl\AppData\Local\Programs\Python\Python36\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 719, in implicitly_wait 'implicit': int(float(time_to_wait) * 1000)}) File "C:\Users\sunl\AppData\Local\Programs\Python\Python36\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 249, in execute self.error_handler.check_response(response) File "C:\Users\sunl\AppData\Local\Programs\Python\Python36\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 193, in check_response raise exception_class(message, screen, stacktrace)selenium.common.exceptions.WebDriverException: Message: Not a Number
|
|