title: Selenium WebDriver Bot for Instagram
body: <p>I am trying to develop a simple bot that likes instagram pictures from a special hashtag. I am using Selenium but I have problems with the action "click on picture". Login and searching hashtag works.
  The xpath is right but when I run the program it doesnt find it.</p>
  
  <pre><code>public void like() {
          driver.findElement(By.xpath(".//*[@id='react-root']/section/main/article/div[2]/div[1]/div[2]/a[1]/div[2]"))
                  .click();
  
      }
  </code></pre>