我试图在Python中用Selenium获取下面元素的URL ('href')。对于我的生活来说,这是不起作用的,这是我唯一得到的输出就是一个例子:
NoSuchElementException: Message: no such element: Unable to locateelement: {"method":"xpath","selector":"//
这是我的代码的一部分: import timefrom credentials import *
from bs4 import BeautifulSoup我也没有得到print("ERROR: The email address entered is either incorrect or does not exist"),但是我得到了selenium显示的错误我不知道为什么在这种情况下错误处理不起作用。这是我<e