This is my very first time trying to scrape data from a website using Selenium. Fortunately I have got Selenium and Chrome to coordinate and the desired website opens.Once it opens up, I want to tell Python to click '
from selenium import webdriver
driver = webdriver.Chrome("C:\Python27\Scripts\chromedriver.exe")
number_option = driver.find_element_by_id("cplMain_btnSearch")
search_button = driver.find_element_by_id("cplMain_btnExportToExcel")
result_file = open("result_file.xlsx", "w")
Looking at the source of that page, the ID of the search button is "cplMain_btnSearch" not "SEARCH". And the Export button is "cplMain_btnExportToExcel".