i wanted to start my journey with powershell, but it seems I can't figure out why button on this site is not responding
(this is my uni site)
I want to be able to sign in via script.
I've been trying different variations like
$submitButton = $ie.documentElement.getElementsByTagName("input") |
Where-Object {$_.value -eq ' Zaloguj siÄ™ '}
$submitButton.click()
or
$submitButton = $ie.documentElement.getElementsByTagName("input") |
Where-Object {$_.type -eq 'submit'}
$submitButton.click()
but i always get error.
You cannot call a method on a null-valued expression
What am I missing?
+ $submitButton = $ie.documentElement.getElementsByTagName("input") | Where-Object ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (:) [], RuntimeException + FullyQualifiedErrorId : InvokeMethodOnNullThis is what i get - Adures