powershell: how to click a “submit type” input
used powershell to do web ui automation. came up an exception: invoke method failed, because [System.__ComObject] does not contain “click” method. can submit type input be clicked? i used getElementsByTagName getElementsByClassName getElementsByName , does not work. anyone can help me on this? powershell code is below: # open the specified web site and commit the key $ie = new-object -com "InternetExplorer.Application" $ie.navigate("http://gitlab.alibaba-inc.com/keys/new") $ie.visible = $true while($ie.busy) {sleep 1} $doc = $ie.document # commit the button $commit = $doc.getElementsByTagName(