mercredi 9 août 2017

Select checkbox on website using VBA

I have an piece of VBA-code, to log in to a website.

This was quite easy, looking for the ID of the element, and use the code:

IE.document.getElementById("Postponement").Click

But now I get a problem, because the HTML code of a particular checkbox is only:

<input type="checkbox" data-bind="checked: selectAll, click: actionAllSelected"></input>

This is a checkbox to select all customers on this particular page. I want to select them all. Because there is no ID or NAME, I can not use 'getElementById'.

Anyone have an idea to select this checkbox with VBA?

Thanks!




Aucun commentaire:

Enregistrer un commentaire