【发布时间】:2019-03-26 13:15:55
【问题描述】:
我在网页中有一个对象的位置。 在 selenium 中,我们可以获取元素的位置,如下面的代码所示。 我想知道如何在 python 中进行反向操作。
str = driver.find_elements_by_tag_name("input")
for i in str:
print(i.location)
【问题讨论】:
-
您应该编辑您的帖子以正确缩进代码 sn-p
-
使用 BeautifulSoup:crummy.com/software/BeautifulSoup/bs4/doc(另外,请使用 MCVE,stackoverflow.com/help/mcve)
标签: html python-3.x selenium-webdriver