I want to get the hkdrates table with selenium:
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
chrome_options = Options()
browser = webdriver.Chrome(options=chrome_options,executable_path='/usr/bin/chromedriver')
browser.get("https://www.bochk.com/en/investment/rates/hkdrates.html")
Now the webpage contains hkdrates opened with selenium's chrome driver:
The xpath is //*[@id="form-div"]/form/div/table[1]
shown in chrome.
browser.find_elements_by_xpath('//*[@id="form-div"]/form/div/table')
[]
browser.find_elements_by_xpath('.//table')
[]
Both of them can get nothing,how to get the hkdrates table then?