vendredi 26 mars 2021

VBScript how do you check if both an ID and a Class exist in a single link?

I am working on an HTA automation tool for use in IE and I've come across a form where, if a user already has access, the link is grayed out and cannot be clicked; otherwise it works fine.

In that link, there is both an ID and a Class, but if the link is grayed out, a different class is appended to it.

How do you check, using VBScript, if the link has both the ID and the newly appended class?

Example:

Active <a href="#" id="example_id" class="example_class">

Disabled <a href="#" id="example_id" class="example_class disabled">

Aucun commentaire:

Enregistrer un commentaire