Home > other > Selenium webdriver images click on the download link, computer program to die
Selenium webdriver images click on the download link, computer program to die
Time:09-28
Experts, Out of interest hobby, I wrote a script automatically download the analysis results from the company website, In the download, the following problems: 1. Use find_elements_by_tag_name found out the corresponding control (name as' ele);
2. The following code: Print (' before ele click ') ele. Click () Print (' after ele click ')
3. The web page download the pop-up dialog box, but never PYTHON code execution, stop in ele. Click ();
4. From the python console can also see the print (' after ele click ') has not been executed;
Experts, please help to see what's going on,
The other masters if you know of subsequent pop-up download dialog box, how to implement the save as?
Thank you very much!
CodePudding user response:
See screenshots seems IE browser? Change the chrome Idea is to initialize the webdriver, the closing of the browser downloads with extension parameter confirm