'How to click selenium submenus with python
I'm trying to make this code below to download the chart information but I'm not able
#Biblioteca
import pandas as pd
from selenium.webdriver.support.select import Select
from selenium.webdriver.common.by import By
from selenium import webdriver
from time import sleep
# configurações para abrir o navegador chrome
options = webdriver.ChromeOptions()
options.add_argument('--headless')
options.add_argument('--no-sandbox')
options.add_argument('--disable-dev-shm-usage')
# a execução do Selenium no chrome
driver = webdriver.Chrome(options = options)
# acessando o site SRT
driver.get('https://www.bcb.gov.br/estatisticas/detalhamentoGrafico/graficosspb/MeiosPagamentosValortrimestralConsolidado')
elements = driver.find_elements_by_class_name("highcharts-no-tooltip highcharts-button highcharts-contextbutton highcharts-button-normal")
for element in elements:
element.click()
baixar = driver.find_element_by_xpath('//*[@id="highcharts-w74uab8-1922"]/div/ul/li[7]')
baixar.click()
need to make this click

Baixar arquivo CSV
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
