我一直在尝试使用Selenium,并一直在尝试让我的自动结帐正常工作。到目前为止,它是相当成功的,但我遇到了一个障碍,我的代码的末尾部分似乎无法正常工作。我一直收到"selenium.common.exceptions.NoSuchElementException:消息: Unable to locate element: //*@id="creditCardNumberfrom selenium.webdriver import Firefox
from
因此,我从“用Python自动完成无聊的事情”开始,现在学习第11章,即Web抓取。在此期间,我很难让selenium与Firefox协同工作。该版本的详细内容如下:Firefox: 81.0 (64 bit) (Latest at the time of writing)Selenium: 3.141.0当我运行以下脚本时,它会异常崩溃:
from seleni