title: Python | Selenium | Keeps outputting page source rather than what I see when I manually inspect element
body: <p>I expect to print out what I see when I manually inspect the page. However, it seems like it's printing the page source because I can't find elements that are there when I manually inspect. </p>
  
  <p>I'm trying to get the product names for Bank of America's credit cards. </p>
  
  <p>I'm using Selenium because the product names on the bankofamerica site are generated via Javascript. Once I know that I'm parsing the right elements, I plan to find the card names and other related elements by searching for the class. </p>
  
  <p>I believe that I've properly installed the Firefox web driver because the code opens a browser window to the correct page. </p>
  
  <pre><code>import requests
  from bs4 import BeautifulSoup
  from selenium import webdriver
  
  browser = webdriver.Firefox()
  browser.get('https://www.bankofamerica.com/credit-cards/#filter')
  html = browser.execute_script("return document.documentElement.outerHTML")
  
  sel_soup = BeautifulSoup(html,'html.parser')
  print (sel_soup)
  </code></pre>