首页 新闻 赞助 找找看

webdriver 在什么情况下会出现这种错误

0
[已关闭问题] 关闭于 2017-03-21 14:55

错误一:http.client.ResponseNotReady: Idle

错误二:http.client.CannotSendRequest: Request-sent

 

莫名出现这种错误,

 

刚才又出现了,这是完整出错信息

复制代码
Exception in thread 3:
Traceback (most recent call last):
  File "E:\Python\Python35-32\lib\threading.py", line 914, in _bootstrap_inner
    self.run()
  File "E:\Python\Python35-32\lib\threading.py", line 862, in run
    self._target(*self._args, **self._kwargs)
  File "H:/PycharmProjects、src/me.py", line 127, in st
    ad()
  File "H:/PycharmProjects/src/me.py", line 111, in ad
    'body > div.page-container > div.window > div.live-container.main-content > div > div.liveRoom > div.ainer > div > div.live-edit-box > div > div > input')
  File "E:\Python\Python35-32\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 437, in find_element_by_css_selector
    return self.find_element(by=By.CSS_SELECTOR, value=css_selector)
  File "E:\Python\Python35-32\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 752, in find_element
    'value': value})['value']
  File "E:\Python\Python35-32\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 234, in execute
    response = self.command_executor.execute(driver_command, params)
  File "E:\Python\Python35-32\lib\site-packages\selenium\webdriver\remote\remote_connection.py", line 408, in execute
    return self._request(command_info[0], url, body=data)
  File "E:\Python\Python35-32\lib\site-packages\selenium\webdriver\remote\remote_connection.py", line 439, in _request
    self._conn.request(method, parsed_url.path, body, headers)
  File "E:\Python\Python35-32\lib\http\client.py", line 1106, in request
    self._send_request(method, url, body, headers)
  File "E:\Python\Python35-32\lib\http\client.py", line 1141, in _send_request
    self.putrequest(method, url, **skips)
  File "E:\Python\Python35-32\lib\http\client.py", line 974, in putrequest
    raise CannotSendRequest(self.__state)
http.client.CannotSendRequest: Request-sent
复制代码

 但也不是每次都出错,就运行运行就出错了。

还没有的主页 还没有 | 小虾三级 | 园豆:531
提问于:2017-02-26 21:49
< >
分享
所有回答(1)
0

执行到哪行代码报的错 调试下

ycyzharry | 园豆:25639 (高人七级) | 2017-02-26 23:26

线程怎么调试,断不下来

支持(0) 反对(0) 还没有 | 园豆:531 (小虾三级) | 2017-02-27 16:01
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册