title: Upgrading to nightwatch 2 - stale element reference: element is not attached to the page document
body: <p>I'm trying to upgrade to nightwatch v2.2.1 from 1.3.4 and I'm getting the following error when running the tests together (on nightwatch v1.13 both tests pass):</p>
  <pre><code> Error while running .locateMultipleElementsByElementId() protocol action: stale element reference: element is not attached to the page document
  </code></pre>
  <p>If I comment out the first test and run only the second test it passes</p>
  <p>How can I fix this error?</p>
  <pre><code>  const testSuite = {
    '@tags': ['desktop'],
  
    before: function(browser) {
      productPage = browser.page.product();
      priceAvailability = productPage.section.priceAvailability;
      scalePrice = priceAvailability.section.scalePrice;
      storesSwitcher = priceAvailability.section.storesSwitcher;
      storesFlyout = priceAvailability.section.storesFlyout;
    },
  
  'Check that scalePrice with basePrice info is present in online tab'(browser) {
    const product = products.withScalePrice;
    const url = `${browser.launchUrl}${product.id}`;
  
    productPage.navigate(url);
  
    scalePrice.waitForElementPresent('@scalePriceBody', delays.twentySeconds);
    scalePrice.expect.element('@scalePriceBody').text.to.contain(product.basePrice);
  
    browser.end();
  },
  
  'Check that scalePrice with basePrice info is present in store tab'(browser) {
      const product = products.withScalePrice;
      const url = `${browser.launchUrl}${product.id}`; 
  
      productPage.navigate(url);
  
      storesSwitcher.waitForElementPresent('@physical', delays.twentySeconds)
      console.log('1')
      storesSwitcher.click('@physical');
      console.log('2')
      priceAvailability.waitForElementPresent('@storesFlyout', delays.twentySeconds);
      console.log('3')
      storesFlyout.click('@storeLastButton');
      console.log('4')
      scalePrice.waitForElementPresent('@scalePriceBody', delays.twentySeconds);
      console.log('5')
      scalePrice.expect.element('@scalePriceBody').text.to.contain(product.basePrice);
      console.log('6')
  
      browser.end();
    },
  };
  
  module.exports = testSuite;
  </code></pre>