title: Using puppeteer.js to scrape kijiji cars. Cant get values of different divs all into one place
body: <p>Pretty confusing title, but I dont know how to really ask it any better.</p>
  <p>I essentially am trying to get both the TITLE and the PRICE of each listing on the page and store them both into one place.</p>
  <p>My current code is looking like this:</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>const puppeteer = require("puppeteer");
  
  function run() {
    return new Promise(async (resolve, reject) =&gt; {
      try {
        const browser = await puppeteer.launch({
          headless: false,
          slowMo: 250,
          devtools: true,
        });
        const page = await browser.newPage();
        await page.setViewport({ width: 1280, height: 800 });
        await page.goto(
          "https://www.kijiji.ca/b-cars-vehicles/city-of-toronto/honda-civic/k0c27l1700273",
          { waitUntil: "networkidle2" }
        );
        let urls = await page.evaluate(() =&gt; {
          let results = [];
          // to get the titles 
          let titles = document.querySelectorAll(
            "div.regular-ad &gt; div.clearfix &gt; div.info &gt; div.info-container &gt; div.title"
          );
          titles.forEach((title) =&gt; {
            results.push({
              title: title.innerText,
            });
          });
          // to get the price
          let prices = document.querySelectorAll(
            "div.regular-ad &gt; div.clearfix &gt; div.info &gt; div.info-container &gt; div.price"
          );
          prices.forEach((price) =&gt; {
            results.push({
              price: price.innerText,
            });
          });
  
          return results;
        });
        browser.close();
        return resolve(urls);
      } catch (e) {
        return reject(e);
      }
    });
  }
  run().then(console.log).catch(console.error);</code></pre>
  </div>
  </div>
  </p>
  <p>However my output s coming out in seperate objects - first an array of all the titles then an array of all the prices, I want to have the title and price match inside the same object then move onto the next one!</p>