Hi guys,
I'm trying some code I found for web scraping.
It all works but once in a while I get an error object not found or not supported
If I click on debug and step through the code then it works until it runs into an error again, it doesn't happen all the time, just in certain situations.
On Error Resume next doesn't do anything since it happens in the IE environment

Is there another way to error trap this/ It looks like the section does not have the ClassName it's looking for
Any ideas or tips are welcome
    IE.Document.getElementsByClassName("section-result-title").Item(i).Click
i is valid sometimes 0 sometimes 1, like I say it happens in some occasions in others it runs smoothly.
The reason I'm asking this is that I would like to be able to run it unattended and not have an error halt it.

Thanks for any tip or idea