pyinstaller打包selenium脚本,报Failed to execute script weather
Traceback (most recent call last):
  File "weather.py", line 126, in <module>
  File "weather.py", line 110, in time_control
  File "weather.py", line 85, in Task
  File "weather.py", line 49, in choice_index
  File "selenium\webdriver\remote\webelement.py", line 80, in click
  File "selenium\webdriver\remote\webelement.py", line 633, in _execute
  File "selenium\webdriver\remote\webdriver.py", line 321, in execute
  File "selenium\webdriver\remote\errorhandler.py", line 242, in check_response
selenium.common.exceptions.WebDriverException: Message: unknown error: Element < a href=" " name="O3">...</ a> is not clickable at point (105, 127). Other element would receive the click: <div class="title">...</div>
  (Session info: headless chrome=73.0.3683.86)
  (Driver info: chromedriver=2.46.628402 (536cd7adbad73a3783fdc2cab92ab2ba7ec361e1),platform=Windows NT 10.0.17763 x86_64)

[2804] Failed to execute script weather

我只导入了selenium,time和datetime,selenium也成功一起打包了,自己电脑上运行没问题,传给别人就用不了报错。

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!