title: Googe Cloud Function Error: Node is either not visible or not an HTMLElement
body: <p>I have wrote a google cloud function using inline editor. I cannot see which line is throwing the error "Node is not visible or not an HTML Element" I have read through some of the other people's posts and tried the solutions which they suggested. But have not resolved the problem yet.</p>
  
  <p>Is there a way to see which line throws error on google cloud online editor?
  Can someone see what could be wrong with this cloud function? </p>
  
  <pre><code>exports.searchBing = async (req, res) =&gt; { 
      let {browser, page} = await openConnection();
  
    try {
      await page.goto('https://www.bing.com', {waitUntil: 'networkidle2'});
  
      page.setDefaultNavigationTimeout( 90000 );
      //await page.setViewport({width: 1024, height: 1600});
  
      //await page.waitFor('input[name=q]');
      await page.waitForSelector('input[name="q"]');
  
      var searchString = 'Hello';
  
      // Type search term into the search bar
      await page.type('input[name="q"]', searchString);
  
      try {
        await page.click('input[type="submit"]');
      } catch(error) {}
      await page.waitFor(3000);
      await page.click('input[type="submit"]');
  
      await page.waitForNavigation();
      await page.waitForSelector('h2 a');
  
      var html = await page.content();
      var results = processPage(html);
  
      res.status(200).send(results);
  
  
    } catch (err) {
      res.status(500).send(err.message);
    } finally {
      await closeConnection(page, browser);
    }
  
  </code></pre>