Answers for "python selenium itemprop"

1

python selenium itemprop

# tags = ["span", "div", "meta", "a"]
# attribute = in html: <span itemprop="ATTRIBUTE_HERE">
driver.find_element_by_xpath(f"//{tag}[@itemprop='{attribute}']")
Posted by: Guest on February-16-2021

Python Answers by Framework

Browse Popular Code Answers by Language