How to debug webelement
debug.py
from selenium import webdriver
driver = webdriver.Firefox()
body = driver.find_element_by_tag_name("body")
#If you want to output the contents of the body
print body.get_attribute("outerHTML")
Recommended Posts