python3+selenium程序调试记录------报错提示:AttributeError: 'Element' object has no attribute 'tagname'

 调试程序的时候,总是提示:AttributeError: 'Element' object has no attribute 'tagname'

对着书,对照调试练习,程序和书上写的代码是一样的,可是一运行就出现下面的错误,怎么找都找不出问题。

 仔细查找,然后又百度了一下网上的资料,发现我写的tagName,N写成了小写n,没有注意大小写的后果。

郁闷,o(╥﹏╥)o

猜你喜欢

转载自blog.csdn.net/jingyueshi2009/article/details/83245507
今日推荐