danwagnerco / selenium-vba

Automatically exported from code.google.com/p/selenium-vba
1 stars 0 forks source link

Multiple Diff ID in the same Class #62

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

HTML Code
<div class="post-title"><a href="/thread/5320823f20cb1755138b4583/" 
id="thread_title_5320823f20cb1755138b4583" class="link_thread_title">Kalimat 1. 
</a></div>
<div class="post-title"><a href="/thread/5320823f20cb1755138b4456/" 
id="thread_title_5320823f20cb1755138b4456" class="link_thread_title">Kalimat 2. 
</a></div>
<div class="post-title"><a href="/thread/5320823f20cb1755138b4789/" 
id="thread_title_5320823f20cb1755138b4789" class="link_thread_title">Kalimat 3. 
</a></div>

How to scrape the href from the html code above?
Thanks

Original issue reported on code.google.com by ronnygo...@gmail.com on 22 Mar 2014 at 3:35

GoogleCodeExporter commented 9 years ago
I think you forgot to provide an answer or closure to this issue:
https://code.google.com/p/selenium-vba/issues/detail?id=60

Original comment by florentbr on 22 Mar 2014 at 1:27

GoogleCodeExporter commented 9 years ago
For Each element In wd.findElementsByCssSelector("div.post-title > a")
    Debug.Print element.getAttribute("href")
Next

Original comment by florentbr on 25 Mar 2014 at 11:44

GoogleCodeExporter commented 9 years ago

Original comment by florentbr on 8 Sep 2014 at 5:40