Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

129
Views
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 answers
Answer question

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 Report

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!