Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
So the problem statement is:
I need to store a specific number(marked in RED) from the attribute & for that I want to point to that number in an xPath. Is that possible?
You need to get the innerHTML via getAttribute("onmouseover") function and parse the String using a regular expression. There is no direct approach from Selenium.
You can ask for a link tag which contains some substring in its onmouseover attribute.
Required, but never shown