我在VBA中具有一些很好的自动化功能,可以将数据导入Excel并使用其他Win应用程序在那里处理它们,并且我可以与IE元素进行无缝交互:
示例;
Dim IE As Object
Application.DisplayAlerts = False
Application.ScreenUpdating = False
Application.ScreenUpdating = False
Set IE = CreateObject("InternetExplorer.Application")
IE.Visible = True
IE.navigate "https://example.php"
IE.document.all.Item("inputName").Value = "XXXXX"
' IE.Document.getElementById("inputName").Value = "xxxxxxx"
' delay 5
' IE.Document.getElementById("inputPassword").Value = "xxxxxxx"
' delay 5
IE.document.all.Item("inputpassword").Value = "xxxxxxx"
IE.document.all.Item("submit").Click
'IE.Document.getElementById("button").Click
是否可以以相同的方式与独立于JAVA Stad的应用程序元素进行交互?