title: Puppeteer - Click div not working
body: <p>I'm able to login, but i need to click on a div that has no id and i cant figure out how to do it</p>
  
  <p>This is html element. Onclick event (devtool properties) is on the div that has the route (class route-redirect-box)</p>
  
  <p>How can i click this link to go to "listachamados" page?</p>
  
  <p>Page html:</p>
  
  <pre><code>&lt;div class="menu-lateral-contraido-sub-container" title="Lista de Chamados" draggable="true" style="opacity: 1;"&gt;
  
  &lt;div to="/main/listachamado/" class="route-redirect-box"&gt;&lt;div class="menu-lateral-item-contraido-container cor-tema-topo-fundo "&gt;
  
  &lt;div class="menu-lateral-item-contraido-icon"&gt;&lt;i class="ellevo-icons"&gt;lista_chamado&lt;/i&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;
  
  &lt;div class="menu-lateral-item-contraido-icon"&gt;&lt;i class="ellevo-icons"&gt;lista_chamado&lt;/i&gt;&lt;/div&gt;
  &lt;i class="ellevo-icons"&gt;lista_chamado&lt;/i&gt;
  </code></pre>
  
  <p>My code:</p>
  
  <pre><code>const puppeteer = require('puppeteer');
  
  let scrape = async () =&gt; {
      const browser = await puppeteer.launch({ headless: false });
      const page = await browser.newPage();
      await page.goto('https://notreal.br/', {waitUntil: 'load'});
      console.log(page.url());
  
      const SELETOR_USUARIO = '#usuario';
      const SELETOR_SENHA = '#senha';
      const usuario = 'username';
      const senha = 'password';
  
  
      await page.type(SELETOR_USUARIO, usuario);
      await page.type(SELETOR_SENHA, senha);
      //await page.waitForNavigation();
  
  
      console.log(page.url());
      await Promise.all([
          page.click('#login'),
          page.waitForNavigation({ waitUntil: 'networkidle0' })
  
          //page.click('.menu-lateral-item-contraido-container cor-tema-topo-fundo'),
  
      ]);
  
      await Permise.all([
        page.waitFor('load'),
        await page.evaluate(() =&gt; {
            let lista = document.getElementsByClassName('div.route-redirect-box')
            lista.click()
            //page.click(lista)
        })
      ]);
  
      //browser.close();
  };
  
  scrape().then((value) =&gt; {
      console.log(value); 
  });
  </code></pre>