AutoIt

UWSCの代替でね。

いろいろと検証中。

 

ひろって来たサンプルを実行しようとしたら「Error: Variable must be of type "Object"」なんてエラー。

 

qiita.com

 

「利用例」をそのまま実行で下記エラー。

 

f:id:asacloud9:20190124002416p:plain

 

なんじゃこれ、といろいろと調べてたら、検索フォームのidが、今はサンプル中の「lst-ib」ではないっぽい。

そのオブジェクトに value 属性が無いからエラーかな。

 

 

<a>クリック。

どうも、ループさせないとだめらしい。

https://www.autoitscript.com/forum/topic/116614-_ie-how-to-click-item-by-class/

 

$oFound = ""
$colLinks = _IELinkGetCollection($oIE)
For $oLink In $colLinks
If $oLink.className & "" = "signIn" Then
$oFound = $oLink
ExitLoop
EndIf
Next
If IsObj($oFound) Then
MsgBox(64, "Success", "Found it!")
Else
MsgBox(16, "Failed", "Not found.")
EndIf

 

下記、IE操作の関数一覧。

open-shelf.appspot.com