How get the value of a 'charset' meta element with Xpath?

Advertisements With Selenium webdriver, I’m trying to parse a charset meta element from a page. <meta charset="UTF-8"> This is what I have so far from selenium.webdriver.common.by import By xpath=’//meta[@charset]’ charset_meta_element = driver.find_element(By.XPATH, xpath) I get a WebElement object. How from this element I can get the value (eg: ‘UTF-8’)? >Solution : You can use the… Read More How get the value of a 'charset' meta element with Xpath?