How can I get the current contents of an element in webdriver,driver.quit()