title: How to scrape hidden class data using selenium and beautiful soup
body: <p>I'm trying to scrape java script enabled web page content. I need to extract data in the table of that website. However each row of the table has button (arrow) by which we get additional information of that row.</p>
  
  <p>I need to extract that additional description of each row. By inspecting it is observed that the contents of those arrow of each row belong to same class. However the class is hidden in source code. It can be observed only while inspecting. The data I'm trying to sparse is from the <a href="https://projects.sfchronicle.com/2020/layoff-tracker/" rel="nofollow noreferrer">webpage</a>. </p>
  
  <p>I have used selenium and beautiful soup. I'm able to scrape data of table but not content of those arrows in the table. My python is returning me an empty list for the class of that arrow. But working for the classs of normal table data. </p>
  
  <pre><code>from bs4 import BeautifulSoup
  from selenium import webdriver
  
  browser = webdriver.Firefox()
  browser.get('https://projects.sfchronicle.com/2020/layoff-tracker/')
  html_source = browser.page_source  
  soup = BeautifulSoup(html_source,'html.parser')
  data = soup.find_all('div',class_="sc-fzoLsD jxXBhc rdt_ExpanderRow")
  print(data.text)
  </code></pre>