I am very new to coding. We are using selenium tool writing scripts in python.
I have the following code for a single web element:
element = driver.find_element_by_css_selector("locator")
height = element.get_attribute('height')
print height
Now I have my xpath expression that is returning 8 items for which I have to print the "height" attribute. How can I do this in python?