📜  python selenium itemprop - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:51.131000             🧑  作者: Mango

代码示例1
# tags = ["span", "div", "meta", "a"]
# attribute = in html: 
driver.find_element_by_xpath(f"//{tag}[@itemprop='{attribute}']")