検索ボックスにテキストを入力するのに苦労していますが、正しい ID タグだと思います。ページのソース コードから ID を取得しました。以前に他のウェブサイトでこれを行ったことがあります。誰かが私を助けてくれますか?これを行う別の方法はありますか?
Sub FileUpload()
Dim IEexp as Object
IEexp.visible = True
IEexp.Navigate ("www.example.com")
'this is where the problem
IEexp.Document.GetElementByID("step1_id_bean_newSupportingDoc_description").Value _
= "monthly update"
End Sub
「オートメーション エラー、呼び出されたオブジェクトはクライアントから切断されました」というメッセージが表示されます。
ID を取得したソース コード:
<td class="Label">Description</td>
<td class="Data"><input type="text" name="bean.newSupportingDoc.description" size="60" maxlength="250" value="" id="step1_id_bean_newSupportingDoc_description" class="NoBorder"/>
</td>