title: Need to combine .getElementsByClass and .getElementsById to scrape data from website
body: <p>I am writing a simple crawler using VBA. I found out that the data I am looking for correspond to the node <code>&lt;h6 class="country-name" id="Australia"&gt;</code>.</p>
  
  <p>I know that if I wanted to select data from, let us say, <code>&lt;div class="section-country"&gt;</code>, I should use <code>.getElementsByClassName("section-country")</code> in my VBA macro.</p>
  
  <p>In presence of both class <strong>and</strong> id in the node, which command should I insert in my VBA macro to scrape data?</p>
  
  <p>Thanks a lot,
  Avitus</p>
  
  <p>EDIT: writing .getElementsByClassName("country-name").getElementsById("Australia") gives me an error. Why?</p>