How do I target the following…
Every href attribute, inside a li, inside a ul, inside the FIRST div with the class of “listing”.
There are many div.listing divs on the page, and inside each there are like 1000 ul>li>a[href=”http://whatever.com”%5D
I want to fetch all the http://whatever.com in only the first div.
I know I can use div[1] and I can use div[@class=”listing”] but really I need to find out how to combine them, and I also need to know how you fetch the attribute and not the text
I got this by marking up your question in HTML and using SelectorGadget