You want just .text
So, use this
elem = driver.find_element(By.XPATH,'//*[@id="t3_9kxrv6"]/div/div/div[3]/span/h2').text
solved How to get text, using Selenium Python XPATH [duplicate]
You want just .text
So, use this
elem = driver.find_element(By.XPATH,'//*[@id="t3_9kxrv6"]/div/div/div[3]/span/h2').text
solved How to get text, using Selenium Python XPATH [duplicate]