Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

130
Visualizações
Chrome crash during execution of a javascipt in selenium python

I want to download the excel file from a website via selenium python. I have written a code as below. During the execution of javascript, My chrome crashed. I am not getting any error messages. Could someone please help me out?

from webdriver_manager.chrome import ChromeDriverManager
chromDriver = ChromeDriverManager().install()
driver = webdriver.Chrome(chromDriver)
driver.get("https://nrlm.gov.in/mmuMasterReport.do?methodName=getNodalOfficerList") 
driver.execute_script("genrateExcel()")
about 4 years ago · Juan Pablo Isaza
2 Respostas
Responde à pergunta

0

In have had a look to your website, replace below statement

driver.execute_script("genrateExcel()")

with following code and you should be able to download the excel file in your local

download_excel= driver.find_element_by_xpath("//a[@title='Download as Excel']")
download_excel.click()
about 4 years ago · Juan Pablo Isaza Relatório

0

Found the issue, I was using the code with Jupiter Notebook which is creating a problem somehow. I switched to the command window and it works!

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda