vendredi 19 février 2016

how can i get the id to every checkbox on a page in casperjs

okay so i am fairly new to casperjs

i currently have a script then select every checkbox on a page and then submits the page

every check box is under multipul divs on a page

i currentlly have to sit for a round 3 hours manually fetching each selector for a few hundred checkboxes on a page . i then create a recurring list on

   this.click('slector');

as you can iamagine my scripts are very bulky and pretty unpraticle

is there any way i can fetch the id for every visible

 < input

with the type

type="checkbox"

i only want to fetch the id that are visble on the page and click each on




Aucun commentaire:

Enregistrer un commentaire