1
IDまたは名前のないボタンをクリックしようとしています。私は、タブを使用してみましたが、それはうまくいきませんでした、と私は、次のコードを試してみましたが、それは何もしません。IE上で使用するvbaのidを付けないボタンをクリック
Set tags = Ie.document.getElementsByTagName("button")
For Each tagx In tags
If tagx.Value = "Save" Then
tagx.onclick
Exit For
End If
Next
そしてここでは、HTMLマークアップです:
<div class="ui-dialog-buttonpane ui-widget-content ui-helper-clearfix">
<div class="ui-dialog-buttonset">
<button type="button" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" role="button" aria-disabled="false"><span class="ui-button-text">Cancel</span></button>
<button type="button" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" role="button" aria-disabled="false"><span class="ui-button-text">Save</span></button>
</div>
</div>
ディー、あなたの作品は完璧なものです –
@gpmn私はそれが助けて嬉しいです:)。答えを受け入れるようにマークしてください。 – dee