I am following some YouTube totorials on COM.
I learned how to input certain thing by finding the ElementByID
However, in the example on YouTube, the websites' login button also had an ID, but the website
I'm testing it with does not.
Does anyone know how to fix this ?
If I inspect the button, it shows this html code:
Code: Select all
<button class="btn btn-block btn-primary btn-lg" type="submit" data-bind="disable: _loading()">
<span data-i18n="login_submit_button">Inloggen</span> <------------------- I THINK I NEED TO DO SOMETHING WITH THIS
<i class="fa fa-caret-right" data-bind="visible: !_loading()"></i>
<div class="dot-opacity-loader" style="display: none;" data-bind="visible: _loading()">
<span></span>
<span></span>
<span></span>
</div>
</button>
Code: Select all
^q::
Url := "https://login.parcelpro.nl/"
Username := "[email protected]"
Password := "fakepassword.com"
web_browser := ComObjCreate("InternetExplorer.Application")
web_browser.Visible := True
web_browser.Navigate(Url)
while web_browser.busy
{
sleep,500
}
Sleep, 1000
username_input := web_browser.document.getElementbyID("email")
username_input.value := UserName
username_input := web_browser.document.getElementbyID("password")
username_input.value := Password
return