Hey guys, i need to click a button that doesnt have a name or id on a website in internet explorer. The button is the following:
<button class="btn btn--anchor after--overlay pdgh0 facility" type="button">
Anlage
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon--arrow-down icon--toggle bg-brand text-white" role="img"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#arrow-down" /></svg></button>
and then i also need to click
You can search for the button element by it's innertext value, something like this --
Local $oButtons = _IETagNameGetCollection($oIE, "button")
For $oButton In $oButtons
If $oButton.innerText = "Anlage" Then
_IEAction($oButton, 'click')
ExitLoop
EndIf
Next