html - 将登录详细信息从 VBA 发送到 HTML 弹出窗口
问题描述
是否可以将登录详细信息从 VBA 发送到 HTML 弹出窗口?我很容易调用主 HTML 页面,但随后会出现一个弹出登录窗口,并且我的代码返回错误“远程服务器计算机不存在或不可用”。:
Set appIE = New InternetExplorerMedium
With appIE
.navigate sURL
.Visible = True
End With
Do While appIE.Busy Or appIE.readyState <> 4
DoEvents
Loop
' ERROR OCCURS HERE - "The remote server machine does not exist or is unavailable"
Set objCollection = appIE.document.getElementById("inputUsername")
objCollection.Value = "xxxxx.xxxx@xxx.xxx.xx"
Set objCollection2 = appIE.document.getElementById("inputPassword")
objCollection2.Value = "yyyyyy"
弹出 HTML 是(我已经删掉了一些行):
<div class="input-prepend">
<label class="add-on " for="inputPassword" data-ng-class="{'text-error': passwordRequired}">Password</label>
<input name="inputPassword" class="input-medium ng-pristine ng-valid" id="inputPassword" type="password" placeholder="Password" data-ng-model="password">
</div>
解决方案
推荐阅读
- android - 广播接收器值不正确
- python - 计算对象列表中有多少对象与属性值的方面相似
- python - 使用 settrace 和检查帧跟踪函数以停止其执行
- mysql - mysql `DROP TABLE IF EXISTS 中的顺序是否重要
` - r - 我想在 for 循环代码中使用列表。list[[i]] 工作正常,但为什么 res <- vector("list",n) 不起作用?
- graphics - 在 THREE.js 中使用像素化效果进行渲染
- cors - 接收到请求的资源上不存在“Access-Control-Allow-Origin”标头,并带有 axios get 请求
- c - 如何使一个程序同时多次执行另一个 C 程序?
- angular - 在Angular2中移动HTML滑块时动态更新变量的值
- html - 使用 css 和 html 将单词放在另一个单词下的最佳解决方案是什么?