-
我正在使用
VBA
自动Chrome
将文件上传到站点,File
类型的button
-
我不知道在chrome 中上传脚本
我当前的VBA:
Sub UploadFile()
Dim bot As WebDriver
Set bot = New WebDriver
bot.Start "chrome"
bot.Get "https://tutorialehtml.com/en/html-tutorial-upload-form/"
'#continue script here please"
End Sub
如果有任何属性为type = 'file'
的输入字段,您可以使用以下代码:
bot.FindElementByCss("input[type='file']").SendKeys "path of file"