報錯:NameError: name 'NoSuchElementException' is not defined
如圖

解決方法:
頭部加一句:from selenium.common.exceptions import NoSuchElementException 可解決

參考:https://stackoverflow.com/questions/19200497/python-selenium-webscraping-nosuchelementexception-not-recognized
