我在python中使用Selenium。for job in elems: job_list.append(job.get_attribute('href'))
The error is "TypeError: 'WebElement' object is not iterable".我知道elems的结果是一个WebElement,但是我需要使用find_element_by_xpath,因为我想
在我的Python中,我试图抓取最多5个滚动的Twitter页面,但是我的脚本抛出了一个TypeError,声明WebElements不可迭代。任何解决这个问题的方法。import time
from selenium.webdriver.common.keys import Keys
print(t
我正在尝试自动化表单填写操作,并且我已经导入并运行了Selenium。我能够在第一次迭代中执行代码,但在第二次迭代中,出现了以下错误消息: File "<pyshell#63>", line 4,python3.7/site-packages/selenium/webdriver/remote/webelement.py",
我尝试使用Python在Spotify Web Player中按下Replay按钮,但得到此错误。如何在How播放器中按下按钮?driver.find_element_by_xpath("""/html/body/div[2]/div/div[4]/div[3]/footer/div/div[2]/div/div[1]/div[5]/button""")[0]
TypeError<