How to make python selenium program to perform certain actions depending upon the web interface response?

+1 vote
Hi All,

I am trying to download files from a website using python selenium. There are 'n' number of files in a site and there are 3 ways to download it.

For all the files there is a 'href' link which i will click to download. The 3 ways by which file will get downloaded:

1) Once I click the link , it will pop up a alert window and i have certain steps to download it.

2) Again If i click the link, there is no pop window but straight way to download it.

3) Last method is once i click the link , there is a button on the web page based upon which I have steps to download the file,

So my question is how i can make the program reacts to the steps with the response of that click event .

TIA :-)
Nov 17 in Python by varunanand
• 130 points
12 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In Python

0 votes
1 answer

How to perform web scraping with python?

Hey, there are various libraries used in ...READ MORE

answered Apr 20, 2018 in Python by aayushi
• 750 points
323 views
+1 vote
3 answers

How to run the Python program forever?

you can also do the old fashioned ...READ MORE

answered Jun 10 in Python by brianno
850 views
0 votes
2 answers

How to add a certain time delay to the code using Python?

You can use time.sleep(duration in second) READ MORE

answered Feb 14 in Python by Shashank
• 1,350 points
40 views
0 votes
1 answer

how to check the syntax of python program without running the program?

Yes, it is possible to check the ...READ MORE

answered Jun 27 in Python by Arvind
• 2,960 points
44 views
0 votes
1 answer

Finding WebDriver element with Class Name in java

The better way to handle this element ...READ MORE

answered Apr 10, 2018 in Selenium by nsv999
• 5,110 points
1,111 views
0 votes
1 answer
0 votes
1 answer

Geo-location microphone camera pop up

To Allow or Block the notification, access using Selenium and you have to ...READ MORE

answered May 11, 2018 in Selenium by Samarpit
• 5,150 points
1,235 views
0 votes
1 answer

How to use such xpath to find web elements

It's much simpler to use: #MyDiv123 > div.super or ...READ MORE

answered Jun 14, 2018 in Selenium by Samarpit
• 5,150 points
980 views