title: how to extract the designated div table data in lxml?
body: <p>There is a page i want to parse in lxml，the table data will change into different form when you click on.</p>
  
  <pre><code>from urllib.request import urlopen
  import lxml.html
  url="http://f10.eastmoney.com/f10_v2/FinanceAnalysis.aspx?code=sz300059"
  material=urlopen(url).read()
  root=lxml.html.parse(material)
  </code></pre>
  
  <p>if i write,    </p>
  
  <pre><code>set=root.xpath('//table[@id="BBMX_table"]//tr')
  </code></pre>
  
  <p>i get the table data of the  corresponding of  </p>
  
  <pre><code>&lt;li class="first current" onclick="ChangeRptF10AssetStatement('30005902','8','All',this,'');"&gt;
  </code></pre>
  
  <p>what  i get is :
  <img src="https://i.stack.imgur.com/MJY06.jpg" alt="enter image description here">    </p>
  
  <p>what i want to get the table  data is  the  corresponding of </p>
  
  <pre><code>&lt;li class="" onclick="ChangeRptF10AssetStatement('30005902','8','Year',this,'');"&gt;
  </code></pre>
  
  <p>what i want to get is:</p>
  
  <p><img src="https://i.stack.imgur.com/0IqXu.jpg" alt="enter image description here"><br>
  how can i write my xpath expression <code>root.xpath</code> properly  ?more info:when you click on <code>按年度</code>,the table will change into other one .<code>onclick="ChangeRptF10AssetStatement('30005902','8','Year',this,'')</code></p>
  
  <p>I have tried with selenium:</p>
  
  <pre><code>import lxml
  from selenium import webdriver
  from selenium.webdriver.chrome.options import Options
  chrome_options = Options()
  chrome_options.add_argument('--no-sandbox')
  chrome_options.add_argument('--disable-dev-shm-usage')
  chrome_options.add_argument("--headless")
  browser = webdriver.Chrome(options=chrome_options,executable_path='/usr/bin/chromedriver')
  browser.get("http://f10.eastmoney.com/f10_v2/FinanceAnalysis.aspx?code=sz300059")
  root = lxml.html.document_fromstring(browser.page_source)
  mystring = lxml.etree.tostring(root, encoding = "unicode")
  with open("/tmp/test.html","w") as fh:
      fh.write(mystring)
  </code></pre>
  
  <p>Open <code>/tmp/test.html</code> ,no data in it,how can i get my expect data?</p>