/MicroSoftResearchIndia_TechnicalAssessment

Automation to download the latest PDF posted on a website

MIT LicenseMIT

MicroSoftResearchIndia_TechnicalAssessment

Utilized selenium ide to record the automation process of downloading the latest Final Offer Documents filed with ROC on the SEBI( Security and Exchange Board of India) website.

image

Download the file and open the cmd terminal and run this command > selenium-side-runner /path/to/your-project.side image

Code:
-> On recording the automation process i got the target as "LinkText: Name of the first company"
-> Here is the catch, if the webiste gets updated and new pdf is uploaded it will still install the old pdf file
-> Hence i changed the target using css selector
-> css=.odd:nth-child(1) .points {if in the bracket the user pass the value n it will get the nth row pdf}
image