There are 7 unselected check-boxes available in application. How to select first and last checkboxes and how to select all checkboxes from reverse order using python selenium webdriver?
1What did you tried so far? show us source and errors. See help center– Peter M. - stands for MonicaMay 1, 2018 at 20:26
I can give you the logic in java, you can try and convert it into python.
//for clicking 1st checkbox driver.findElement(By.xpath("XPATH_OF_FIRST_CHECKBOX")).click(); //for selecting 2nd checkbox driver.findElement(By.xpath("XPATH_OF_LAST_CHECKBOX")).click();
You can also use other attributes like ID, class if they are available. You can use similar logic for selecting all the other checkboxes with whatever order you want to click them.
You can find multiple elements with driver.findElements (or whatever it is in python). Once you have the list with the checkbox elements in it, it's rather trivial to check (select) them anyway you want. Just make sure that the elements are in order.