webdriver = webdriver.Chrome("C:/Users/acer/chromedriver_win32/chromedriver.exe")
url = 'http://biokb.ncpsb.org/AllerGAtlas/index.php/Home/Browse/?fbclid=IwAR2RPwrnsT7zR9SEdU0PW-eJ7HAelg6WRyn23-hCjTrNCEOb1uOMd_qG3ns'
webdriver.get(url)
webdriver.save_screenshot('test.png')
webdriver.find_elements_by_class_name('fa fa-download').click()
#webdriver.find_element_by_xpath('//*[@class="fa fa-download"]').click()
I want to download all the files available.
The error I got :
InvalidSelectorException: Message: invalid selector: Compound class names not permitted (Session info: headless chrome = 73.0.3683.103) (Driver info: chromedriver = 2.45.615291 (ec3682e3c9061c10f26ea9e5cdcf3c53f3f74387), platform=Windows NT 10.0.17134 x86_64)