I am using BS4 and PhantomJS for scraping a website. Everything works fine on Mac but on Windows I got a strange error: `find_all()` returns `None`, but the elements exists! 

My code:

```
def get_venues():
    driver = webdriver.PhantomJS(executable_path = path)
    url=web+'#/racing'
    driver.get(url)
    try:
        wait = WebDriverWait(driver,10).until(EC.presence_of_element_located((By.CLASS_NAME, "wrapper")))
    finally:
        content=driver.page_source
        soup=bs4.BeautifulSoup(content, "html5")
        driver.quit()

    b = soup.find(id='content').div
    print(b)
    c = b.ul(attrs={'class': 'main-list'})

    print(c)

```

and `c` is `None`, which should not be the case as `b` has:

```
</ul></div><ul class="main-list"><li><div class="collapsible R"><div class="icon race_code_R"></div><span>Thoroughbreds</span><div class="arrow_down_sign"></div></div><ul class="sub-list"><li class="venue cell"><a href="#/meetings/19197">
  <span class="location">Beaudesert</span>
  <div class="goto-sign"></div>
</a>
<a class="next-race" href="#/races/181880/exchange/win">
  <span class="time-left critical">-30m</span>
  <span class="number">R5</span>
</a>
</li><li class="venue cell"><a href="#/meetings/19199">
  <span class="location">Werribee</span>
  <div class="goto-sign"></div>
</a>
<a class="next-race" href="#/races/181900/exchange/win">
  <span class="time-left critical">-38s</span>
  <span class="number">R7</span>
</a>
</li><li c

```