Below is the HTML code snippet I am working with:
<a href="/search/?p=2&q=move&mt=1"> 2 </a>
I am trying to extract the content of the href attribute, specifically "/search/?p=2&q=move&mt=1". Could someone provide me with the appropriate command and CSS locator for this task using Selenium?
If I have multiple similar elements like:
<a href="/search/?p=2&q=move&mt=1"> 2 </a>
<a href="/search/?p=2&q=move&mt=2"> 3 </a>
How would I construct a CSS locator syntax to target the href attribute value containing '2' in the text?