Raconeisteron / selenium-vba

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

Try to get all the link value on a web page #168

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

I am try to get all the link value on a web page by using following code, but 
nothing return and no errors as well.

Set myval = driver.findElementByTagName("a")
j = 2
    For Each item In myval
        Worksheets("Sheet1").Cells(j, 4).Value = item.getAttribute("href")
        j = j + 1
    Next

I am expecting link value to paste into excel cells but there is no value at 
all.

...............
Thanks
Dev

Original issue reported on code.google.com by devpere...@gmail.com on 4 Aug 2015 at 6:24