'get attribute by XPath element
I tried to get this element by XPath and I need to get that number 973660240249897 and this my code
self.driver.find_element(By.XPATH,f'//a[contains(@href,"/reactions/picker/")]').get_attribute('href')
This is the element:
<a href="/reactions/picker/?ft_id=973537850262136_973660240249897&origin_uri=https%3A%2F%2Fmbasic.facebook.com%2Fkazem.mosaad%2Fposts%2F973537850262136%3Fcomment_id%3D973660240249897&av=100011630400830&__tn__=R">تفاعل</a>
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
