Search for button on hmtl page and click on it

11/05/2021 20:08 lalilu11#1
Hello,

i want to use auto it to click on a button on a page. i can read some hmtl stuff of that button:

id="more" class="text-center btn-lg btn-default btn-block m-b-lg"
;href="javascript:void(0);">Load More<

i tried something like this:

Code:
#include <IE.au3>
#include <MsgBoxConstants.au3>

$oIE = _IECreate("link")

_IELoadWait($oIE)

$oTAGs = _IETagNameGetCollection($oIE, "button")

For $oTag in $oTAGs
	If $oTAG.outertext = "Load More" Then ;innertext also not work
		_IEAction($oTAG, "click")
		MsgBox($MB_SYSTEMMODAL, "Load More",$oTAG.innertext)
		ExitLoop
	EndIf
Next
Maybe someone with more experience can help me. thanks