-1

There are few check boxes on the screen.These check boxes appear dynamically i.e.. sometimes there can be 2 check boxes and sometimes more. I am suppose to click at one check box and then click on the download button, in the next step un-check the checked and click on the next check box and then again click on the download button. This process goes on until i click once on all the check boxes. the issue is that i am unable to identify the check box on the webpage. enter image description here

and i have to individually click on each checkbox and then on download button, then move to the next checkbox and do the

Dimple Mathew
  • 49
  • 1
  • 9

1 Answers1

0

You could use Beautifulsoup to identify all the input checkboxes and loop over them to check each through selenium.

from BeautifulSoup import BeautifulSoup as BS

checkboxes = BS.findAll('input', {'type':'checkbox'})
for cb in checkboxes:
    #do the checking   

How can I parse a website using Selenium and Beautifulsoup in python?