title: PhantomJS Selenium Common.LocalForage:IndexedDB is NOT available
body: <p>I am trying to create a way of scraping data from TradingView.com. They do not provide an API and there are limited Python projects trying to scrape this data.</p>
  
  <p>I have implemented the code below.</p>
  
  <ol>
  <li>Load the page.</li>
  <li>Take a screenshot (Page data is not loaded)</li>
  <li>Wait for a span containing the date to be populated.</li>
  <li>Take another screenshot (Page data SHOULD be loaded)</li>
  </ol>
  
  <p>The class names have randomly generated suffixes when they are finally populated, and my Selenium-fu is not good enough yet to find partial class names and awaiting them. It is easier to test the span containing the date as a signal that the page has loaded.</p>
  
  <p><a href="https://www.tradingview.com/symbols/NASDAQ-GOOGL/technicals/" rel="nofollow noreferrer">https://www.tradingview.com/symbols/NASDAQ-GOOGL/technicals/</a></p>
  
  <pre><code>url = "https://www.tradingview.com/symbols/NASDAQ-GOOGL/technicals/"
  driver = webdriver.PhantomJS()
  driver.get(url) 
  driver.save_screenshot("1.png")
  wait = WebDriverWait(driver, 10)
  element = wait.until(lambda driver: len(driver.find_element_by_class_name("js-symbol-lp-time").text)&gt;0) 
  driver.save_screenshot("2.png")
  </code></pre>
  
  <p>Both screenshots show the uninitialised page.</p>
  
  <p>The logs for the browser can be printed.</p>
  
  <pre><code>    for entry in driver.get_log('browser'):
          print(entry)
  </code></pre>
  
  <p>This is the warning, but i can understand why it may be problematic. So i think the page is erroring as IndexDB is not available.</p>
  
  <pre><code>{u'timestamp': 1589730715971, u'message': u'2020-05-17T15:51:55.971Z:Common.LocalForage:IndexedDB is NOT available\n  c (https://www.tradingview.com/static/bundles/category.efc811b3c9028b9b2156.js:286)', u'level': u'WARNING'}
  
  </code></pre>
  
  <p>Any thoughts?</p>
  
  <p>Regards</p>
  
  <p>The output of the second screenshot. Even the Stock title and other static data is not available which suggests it is breaking before fetching the variable data. 
  <a href="https://i.stack.imgur.com/gEKqr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gEKqr.png" alt="enter image description here"></a></p>